@Test public void testNonHybridCount() { ScientificNames sn = new ScientificNames(taxa); assertEquals(4, sn.getNonHybridCount()); }
public long getNonHybridCount() { return sorted.stream() .filter(taxon -> !taxon.getScientificName().contains("×")) .count(); }
ScientificNames { public long getNonHybridCount() { return sorted.stream() .filter(taxon -> !taxon.getScientificName().contains("×")) .count(); } }
ScientificNames { public long getNonHybridCount() { return sorted.stream() .filter(taxon -> !taxon.getScientificName().contains("×")) .count(); } ScientificNames(Collection<Taxon> taxa); }
ScientificNames { public long getNonHybridCount() { return sorted.stream() .filter(taxon -> !taxon.getScientificName().contains("×")) .count(); } ScientificNames(Collection<Taxon> taxa); List<Taxon> getSorted(); Set<Organisation> getSources(); long getNonHybridCount(); long getCount(); }
ScientificNames { public long getNonHybridCount() { return sorted.stream() .filter(taxon -> !taxon.getScientificName().contains("×")) .count(); } ScientificNames(Collection<Taxon> taxa); List<Taxon> getSorted(); Set<Organisation> getSources(); long getNonHybridCount(); long getCount();  }