@Test public void testGroupAnimalBasionyms2() throws Exception { List<ParsedName> names = names( "Heliodoxa rubinoides aequatorialis (Gould, 1860)", "Androdon aequatorialis Gould, 1863", "Clementoron aequatorialis Gould, 1864", "Campylopterus largipennis aequatorialis Gould, 1861" ); Collection<BasionymGroup<ParsedName>> groups = sorter.groupBasionyms(names); assertEquals(1, groups.size()); BasionymGroup<ParsedName> bg = groups.iterator().next(); assertEquals("aequatorialis", bg.getEpithet()); assertEquals("1861", bg.getBasionym().getYear()); assertEquals("aequatorialis", bg.getBasionym().getInfraSpecificEpithet()); assertEquals("Gould", bg.getAuthorship()); }
public Collection<BasionymGroup<ParsedName>> groupBasionyms(Iterable<ParsedName> names) { return groupBasionyms(names, Functions.<ParsedName>identity()); }
BasionymSorter { public Collection<BasionymGroup<ParsedName>> groupBasionyms(Iterable<ParsedName> names) { return groupBasionyms(names, Functions.<ParsedName>identity()); } }
BasionymSorter { public Collection<BasionymGroup<ParsedName>> groupBasionyms(Iterable<ParsedName> names) { return groupBasionyms(names, Functions.<ParsedName>identity()); } BasionymSorter();  BasionymSorter(AuthorComparator authorComp); }
BasionymSorter { public Collection<BasionymGroup<ParsedName>> groupBasionyms(Iterable<ParsedName> names) { return groupBasionyms(names, Functions.<ParsedName>identity()); } BasionymSorter();  BasionymSorter(AuthorComparator authorComp); Collection<BasionymGroup<ParsedName>> groupBasionyms(Iterable<ParsedName> names); Collection<BasionymGroup<T>> groupBasionyms(Iterable<T> names, Function<T, ParsedName> func); }
BasionymSorter { public Collection<BasionymGroup<ParsedName>> groupBasionyms(Iterable<ParsedName> names) { return groupBasionyms(names, Functions.<ParsedName>identity()); } BasionymSorter();  BasionymSorter(AuthorComparator authorComp); Collection<BasionymGroup<ParsedName>> groupBasionyms(Iterable<ParsedName> names); Collection<BasionymGroup<T>> groupBasionyms(Iterable<T> names, Function<T, ParsedName> func);  }