public interface GroupComparator<D>
extends java.util.Comparator<D>
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.
Modifier and Type | Method and Description |
---|---|
int |
compareGroup(D o1,
D o2)
Compares if the two arguments is in the same group.
|
compare, comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
int compareGroup(D o1, D o2)
Copyright © 2005-2018 Potix Corporation. All Rights Reserved.