@Test public void testGroupAnimalBasionyms() throws Exception { List<ParsedName> names = names( "Microtus parvulus (A. H. Howell, 1916)", "Microtus pinetorum parvulus (A. H. Howell, 1916)", "Pitymys parvulus A. H. Howell, 1916" ); Collection<BasionymGroup<ParsedName>> groups = sorter.groupBasionyms(names); assertEquals(1, groups.size()); BasionymGroup<ParsedName> g = groups.iterator().next(); assertEquals(2, g.getRecombinations().size()); assertNotNull(g.getBasionym()); assertEquals("A.H.Howell", g.getBasionym().getAuthorship()); assertEquals("1916", g.getBasionym().getYear()); }
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);  }