public final class FunctionComparator<A,B> extends Object implements Comparator<A>, Serializable
Constructor and Description |
---|
FunctionComparator(Function<A,B> function,
Comparator<B> comparator) |
Modifier and Type | Method and Description |
---|---|
int |
compare(A first,
A second) |
Comparator<B> |
getComparator() |
Function<A,B> |
getFunction() |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public FunctionComparator(Function<A,B> function, Comparator<B> comparator)
Copyright © 2013–2021 Apache Software Foundation. All rights reserved.