@Override public synchronized boolean equals(java.lang.Object obj) { if (!(obj instanceof TermType)) return false; TermType other = (TermType) obj; if (obj == null) return false; if (this == obj) return true; if (__equalsCalc != null) { return (__equalsCalc == obj); } __equalsCalc = obj; boolean _equals; _equals = true && ((this.value == null && other.getValue() == null) || (this.value != null && this.value.equals(other.getValue()))) && ((this.numberOfRecords == null && other.getNumberOfRecords() == null) || (this.numberOfRecords != null && this.numberOfRecords.equals(other.getNumberOfRecords()))) && ((this.displayTerm == null && other.getDisplayTerm() == null) || (this.displayTerm != null && this.displayTerm.equals(other.getDisplayTerm()))) && ((this.whereInList == null && other.getWhereInList() == null) || (this.whereInList != null && this.whereInList.equals(other.getWhereInList()))) && ((this.extraTermData == null && other.getExtraTermData() == null) || (this.extraTermData != null && this.extraTermData.equals(other.getExtraTermData()))); __equalsCalc = null; return _equals; }