boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; GotoRelatedItem item = (GotoRelatedItem)o; if (myElementPointer != null ? !myElementPointer.equals(item.myElementPointer) : item.myElementPointer != null) return false; return true; }