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
ConstructorsConstructorDescriptionFunctionComparator(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, waitMethods 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:
comparein interfaceComparator<T>
-