public class Grouper<ElementType>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
Grouper.Callback<ElementType2> |
Constructor and Description |
---|
Grouper(Grouper.Callback<ElementType> callback)
Creates a new instance of Grouper.
|
Modifier and Type | Method and Description |
---|---|
void |
group(java.util.Collection<ElementType> collection,
java.util.Comparator<ElementType> comparator)
Group elements of given collection according to given
compartor's test for equality.
|
public Grouper(Grouper.Callback<ElementType> callback)
callback
- the callback which receives the groups and elementspublic void group(java.util.Collection<ElementType> collection, java.util.Comparator<ElementType> comparator)
collection
- the collectioncomparator
- the comparatorFindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.