@Test public void testGroupPlantBasionyms3() throws Exception { List<ParsedName> names = names( "Negundo aceroides subsp. violaceus (G.Kirchn.) W.A.Weber", "Negundo aceroides subsp. violaceus (Kirchner) W.A. Weber", "Negundo aceroides subsp. violaceum (Booth ex G.Kirchn.) Holub", "Negundo aceroides subsp. violaceum (Booth ex Kirchner) Holub", "Negundo aceroides var. violaceum G.Kirchn. in Petzold & G.Kirchn.", "Acer violaceum (Kirchner) Simonkai", "Acer negundo var. violaceum (G. Kirchn.) H. Jaeger" ); Collection<BasionymGroup<ParsedName>> groups = sorter.groupBasionyms(names); assertEquals(1, groups.size()); BasionymGroup<ParsedName> g = groups.iterator().next(); assertFalse(g.getRecombinations().isEmpty()); assertEquals(6, g.getRecombinations().size()); assertNotNull(g.getBasionym()); assertEquals("G.Kirchn.", g.getBasionym().authorshipComplete()); }
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);  }