java.io.Serializable
, java.util.Comparator<T>
, SerializableComparator<T>
public class FunctionComparator<T,V> extends java.lang.Object implements SerializableComparator<T>
Comparator
that uses a Function
to select a value from the underlying object and compare it against a known value to determine ordering.Constructor | Description |
---|---|
FunctionComparator(Function<? super T,? extends V> function,
java.util.Comparator<V> comparator) |
Modifier and Type | Method | Description |
---|---|---|
int |
compare(T o1,
T o2) |
Copyright © 2004–2018. All rights reserved.