boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; HighlightPointer that = (HighlightPointer)o; if (element != null ? !element.equals(that.element) : that.element != null) return false; if (text != null ? !text.equals(that.text) : that.text != null) return false; return true; }