Package com.tangosol.util
Class SortedBag.WrapperComparator
java.lang.Object
com.tangosol.util.SortedBag.WrapperComparator
- All Implemented Interfaces:
Comparator
WrapperComparator is a Comparator implementation that is aware of
SortedBag.UniqueElement
wrappers and will delegate the comparison of the
elements in both forms to the wrapped comparator.-
Field Summary
-
Constructor Summary
ConstructorDescriptionWrapperComparator
(Comparator comparator) Construct a WrapperComparator around the specified comparator. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Field Details
-
f_comparator
The underlying "logical" comparator.
-
-
Constructor Details
-
WrapperComparator
Construct a WrapperComparator around the specified comparator.- Parameters:
comparator
- the underlying comparator
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator
-