protected class SortedBag.WrapperComparator extends Object implements Comparator
SortedBag.UniqueElement wrappers and will delegate the comparison of the
elements in both forms to the wrapped comparator.| Modifier and Type | Field | Description |
|---|---|---|
protected Comparator |
f_comparator |
The underlying "logical" comparator.
|
| Constructor | Description |
|---|---|
WrapperComparator(Comparator comparator) |
Construct a WrapperComparator around the specified comparator.
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
compare(Object o1,
Object o2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongprotected final Comparator f_comparator
public WrapperComparator(Comparator comparator)
comparator - the underlying comparatorpublic int compare(Object o1, Object o2)
compare in interface Comparator