public static class KElement.SingleXPathComparator extends Object implements Comparator<KElement>
| Constructor and Description |
|---|
KElement.SingleXPathComparator(String xPath,
boolean pInvert)
if the attribute is numeric, compare numerically, else lexical comparison is done
|
public KElement.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 © 2015. All rights reserved.