@Test public void equalsDifferentIds() { when(this.feature2.getTranslatedName()).thenReturn(HP01_NAME); Assert.assertFalse(this.component.equals(new DefaultMatchCountImpl(this.feature2, HP01_GENES))); }
@Override public boolean equals(@Nullable final Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } final DefaultMatchCountImpl that = (DefaultMatchCountImpl) o; return new EqualsBuilder() .append(this.term, that.term) .append(this.genes, that.genes) .isEquals(); }
DefaultMatchCountImpl implements MatchCount { @Override public boolean equals(@Nullable final Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } final DefaultMatchCountImpl that = (DefaultMatchCountImpl) o; return new EqualsBuilder() .append(this.term, that.term) .append(this.genes, that.genes) .isEquals(); } }
DefaultMatchCountImpl implements MatchCount { @Override public boolean equals(@Nullable final Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } final DefaultMatchCountImpl that = (DefaultMatchCountImpl) o; return new EqualsBuilder() .append(this.term, that.term) .append(this.genes, that.genes) .isEquals(); } DefaultMatchCountImpl(@Nonnull final VocabularyTerm term, @Nullable final Collection<String> associatedGenes); }
DefaultMatchCountImpl implements MatchCount { @Override public boolean equals(@Nullable final Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } final DefaultMatchCountImpl that = (DefaultMatchCountImpl) o; return new EqualsBuilder() .append(this.term, that.term) .append(this.genes, that.genes) .isEquals(); } DefaultMatchCountImpl(@Nonnull final VocabularyTerm term, @Nullable final Collection<String> associatedGenes); @Override int getCount(); @Override String getId(); @Override String getName(); @Override Collection<String> getGenes(); @Override JSONObject toJSON(); @Override boolean equals(@Nullable final Object o); @Override int hashCode(); @Override int compareTo(@Nonnull final MatchCount o); }
DefaultMatchCountImpl implements MatchCount { @Override public boolean equals(@Nullable final Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } final DefaultMatchCountImpl that = (DefaultMatchCountImpl) o; return new EqualsBuilder() .append(this.term, that.term) .append(this.genes, that.genes) .isEquals(); } DefaultMatchCountImpl(@Nonnull final VocabularyTerm term, @Nullable final Collection<String> associatedGenes); @Override int getCount(); @Override String getId(); @Override String getName(); @Override Collection<String> getGenes(); @Override JSONObject toJSON(); @Override boolean equals(@Nullable final Object o); @Override int hashCode(); @Override int compareTo(@Nonnull final MatchCount o);  }