public final class ElementFunctionComparator<V> extends Object implements Comparator<Element>, Serializable
Constructor and Description |
---|
ElementFunctionComparator(Function<Element,V> elementFunction,
Comparator<V> valueComparator) |
Modifier and Type | Method and Description |
---|---|
int |
compare(Element elementA,
Element elementB) |
Function<Element,V> |
getElementFunction() |
Comparator<V> |
getValueComparator() |
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 ElementFunctionComparator(Function<Element,V> elementFunction, Comparator<V> valueComparator)
public Comparator<V> getValueComparator()
public int compare(Element elementA, Element elementB)
compare
in interface Comparator<Element>
Copyright © 2013–2021 Apache Software Foundation. All rights reserved.