|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GroupComparator
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(java.lang.Object, java.lang.Object)
is invoked. If zero is returned, it implies they are in the same group,
and then Comparator.compare(java.lang.Object, java.lang.Object)
is used to compare the order in the group.
Comparator.compare(java.lang.Object, java.lang.Object)
won't be called if they don't belong to the same group.
Method Summary | |
---|---|
int |
compareGroup(java.lang.Object o1,
java.lang.Object o2)
Compares if the two arguments is in the same group. |
Methods inherited from interface java.util.Comparator |
---|
compare, equals |
Method Detail |
---|
int compareGroup(java.lang.Object o1, java.lang.Object o2)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |