@Test public void compareToSame() { Assert.assertEquals(0, this.component.compareTo(new DefaultMatchCountImpl(this.feature1, HP01_GENES))); }
@Override public int compareTo(@Nonnull final MatchCount o) { final int result = Integer.compare(o.getCount(), getCount()); return result != 0 ? result : getName().compareTo(o.getName()); }
DefaultMatchCountImpl implements MatchCount { @Override public int compareTo(@Nonnull final MatchCount o) { final int result = Integer.compare(o.getCount(), getCount()); return result != 0 ? result : getName().compareTo(o.getName()); } }
DefaultMatchCountImpl implements MatchCount { @Override public int compareTo(@Nonnull final MatchCount o) { final int result = Integer.compare(o.getCount(), getCount()); return result != 0 ? result : getName().compareTo(o.getName()); } DefaultMatchCountImpl(@Nonnull final VocabularyTerm term, @Nullable final Collection<String> associatedGenes); }
DefaultMatchCountImpl implements MatchCount { @Override public int compareTo(@Nonnull final MatchCount o) { final int result = Integer.compare(o.getCount(), getCount()); return result != 0 ? result : getName().compareTo(o.getName()); } 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 int compareTo(@Nonnull final MatchCount o) { final int result = Integer.compare(o.getCount(), getCount()); return result != 0 ? result : getName().compareTo(o.getName()); } 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);  }