Class FunctionComparator<T,V>

java.lang.Object
org.eclipse.collections.impl.block.comparator.FunctionComparator<T,V>
All Implemented Interfaces:
Serializable, Comparator<T>, SerializableComparator<T>

public class FunctionComparator<T,V> extends Object implements SerializableComparator<T>
Simple Comparator that uses a Function to select a value from the underlying object and compare it against a known value to determine ordering.
See Also:
  • Constructor Details

    • FunctionComparator

      public FunctionComparator(Function<? super T,? extends V> function, Comparator<V> comparator)
  • Method Details