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