/** @param newText May be null, "" will be used. */ public void setText (CharSequence newText) { if (newText == null) newText = ""; if (newText instanceof StringBuilder) { if (text.equals(newText)) return; text.setLength(0); text.append((StringBuilder)newText); } else { if (textEquals(newText)) return; text.setLength(0); text.append(newText); } intValue = Integer.MIN_VALUE; invalidateHierarchy(); }
/** @param newText May be null, "" will be used. */ public void setText (CharSequence newText) { if (newText == null) newText = ""; if (newText instanceof StringBuilder) { if (text.equals(newText)) return; text.setLength(0); text.append((StringBuilder)newText); } else { if (textEquals(newText)) return; text.setLength(0); text.append(newText); } intValue = Integer.MIN_VALUE; invalidateHierarchy(); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (getClass() != obj.getClass()) return false; Level other = (Level) obj; if (title == null) { if (other.title.getText() != null) return false; } else if (!title.getText().equals(other.title.getText())) return false; return true; }
/** @param newText May be null, "" will be used. */ public void setText (CharSequence newText) { if (newText == null) newText = ""; if (newText instanceof StringBuilder) { if (text.equals(newText)) return; text.setLength(0); text.append((StringBuilder)newText); } else { if (textEquals(newText)) return; text.setLength(0); text.append(newText); } intValue = Integer.MIN_VALUE; invalidateHierarchy(); }