|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GroupComparator<D>
A comparison function used to compare the group order of two objects, and the order of them in the group if they belongs to the same group.
To know whether two objects is in the same group, compareGroup(D, D)
is invoked. If zero is returned, it implies they are in the same group,
and then Comparator.compare(T, T)
is used to compare the order in the group.
Comparator.compare(T, T)
won't be called if they don't belong to the same group.
Method Summary | |
---|---|
int |
compareGroup(D o1,
D o2)
Compares if the two arguments is in the same group. |
Methods inherited from interface java.util.Comparator |
---|
compare, equals |
Method Detail |
---|
int compareGroup(D o1, D o2)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |