public class Grouper<ElementType>
extends java.lang.Object
Modifier and Type | Class | Description |
---|---|---|
static interface |
Grouper.Callback<ElementType2> |
Constructor | Description |
---|---|
Grouper(Grouper.Callback<ElementType> callback) |
Creates a new instance of Grouper.
|
Modifier and Type | Method | 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.