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
Constructors Constructor Description ConverterComparator(Comparator<? super F> comparator, Converter<T,F> conv)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(T o1, T o2)
-
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 Detail
-
ConverterComparator
public ConverterComparator(Comparator<? super F> comparator, Converter<T,F> conv)
Constructor.- Parameters:
comparator
- the comparator to wrapconv
- the converter to use
-
-
Method Detail
-
compare
public int compare(T o1, T o2)
- Specified by:
compare
in interfaceComparator<F>
-
-