Package com.tangosol.util
Class ConverterCollections.ConverterComparator<F,T>
java.lang.Object
com.tangosol.util.ConverterCollections.ConverterComparator<F,T>
- Type Parameters:
F
- the type of the elements the underlying Comparator comparesT
- the type that the elements should be converted to
- All Implemented Interfaces:
Comparator<T>
- Enclosing class:
ConverterCollections
public static class ConverterCollections.ConverterComparator<F,T>
extends Object
implements Comparator<T>
A Comparator that Converts the elements before
comparing them.
-
Constructor Summary
ConstructorDescriptionConverterComparator
(Comparator<? super F> comparator, Converter<T, F> conv) Constructor. -
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
-
Constructor Details
-
ConverterComparator
Constructor.- Parameters:
comparator
- the comparator to wrapconv
- the converter to use
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<F>
-