T
- the type of objects that may be compared by this comparatorpublic interface PartialComparator<T>
A comparison function, which imposes a partial ordering on some collection of objects.
The ordering imposed by a comparator c on a set of elements S is said to be consistent with equals if and only if c.compare(e1, e2)==EQ has the same boolean value as e1.equals(e2) for every e1 and e2 in S.
Comparator
Modifier and Type | Interface and Description |
---|---|
static class |
PartialComparator.PartialComparisonResult
Possible results of the comparison.
|
Modifier and Type | Method and Description |
---|---|
PartialComparator.PartialComparisonResult |
compare(T o1,
T o2)
Compares its two arguments for order.
|
PartialComparator.PartialComparisonResult compare(T o1, T o2)
o1
- the first object to be compared.o2
- the second object to be compared.