Class FunctionComparator<T,V>
java.lang.Object
org.eclipse.collections.api.block.comparator.FunctionComparator<T,V>
- All Implemented Interfaces:
Serializable
,Comparator<T>
,SerializableComparator<T>
- See Also:
-
Constructor Summary
ConstructorDescriptionFunctionComparator
(Function<? super T, ? extends V> function, SerializableComparator<V> comparator) -
Method Summary
Methods inherited from class java.lang.Object
equals, 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
-
FunctionComparator
public FunctionComparator(Function<? super T, ? extends V> function, SerializableComparator<V> comparator)
-
-
Method Details
-
compare
- Specified by:
compare
in interfaceComparator<T>
-