public static class KElement.SingleXPathComparator extends Object implements Comparator<KElement>
Constructor and Description |
---|
SingleXPathComparator(String xPath,
boolean pInvert)
if the attribute is numeric, compare numerically, else lexical comparison is done
|
Modifier and Type | Method and Description |
---|---|
int |
compare(KElement o1,
KElement o2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public SingleXPathComparator(String xPath, boolean pInvert)
xPath
- the xpath in the context of this element to use for comparingpInvert
- if true, sort backwardspublic int compare(KElement o1, KElement o2)
compare
in interface Comparator<KElement>
o1
- o2
- Comparator.compare(java.lang.Object, java.lang.Object)
Copyright © 2018. All rights reserved.