PhenotypeMatch { @Override public boolean equals(Object o) { if (this == o) return true; if (!(o instanceof PhenotypeMatch)) return false; PhenotypeMatch that = (PhenotypeMatch) o; return Double.compare(that.ic, ic) == 0 && Double.compare(that.simJ, simJ) == 0 && Double.compare(that.score, score) == 0 && Objects.equals(matchPhenotype, that.matchPhenotype) && Objects.equals(queryPhenotype, that.queryPhenotype) && Objects.equals(lcs, that.lcs); } PhenotypeMatch(Builder builder); @JsonIgnore String getQueryPhenotypeId(); @JsonProperty("query") PhenotypeTerm getQueryPhenotype(); @JsonIgnore String getMatchPhenotypeId(); @JsonProperty("match") PhenotypeTerm getMatchPhenotype(); @JsonProperty("lcs") PhenotypeTerm getLcs(); @JsonProperty("ic") double getIc(); @JsonProperty("simj") double getSimJ(); @JsonProperty("score") double getScore(); @Override boolean equals(Object o); @Override int hashCode(); @Override String toString(); @JsonCreator static Builder builder();  }
@Test public void testEquals() { assertThat(instance, equalTo(instance)); }