Class FunctionComparator<T,V>
- java.lang.Object
-
- org.eclipse.collections.api.block.comparator.FunctionComparator<T,V>
-
- All Implemented Interfaces:
Serializable,Comparator<T>,SerializableComparator<T>
public class FunctionComparator<T,V> extends Object implements SerializableComparator<T>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FunctionComparator(Function<? super T,? extends V> function, SerializableComparator<V> comparator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompare(T o1, T o2)-
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 Detail
-
FunctionComparator
public FunctionComparator(Function<? super T,? extends V> function, SerializableComparator<V> comparator)
-
-
Method Detail
-
compare
public int compare(T o1, T o2)
- Specified by:
comparein interfaceComparator<T>
-
-