public static class KElement.SingleXPathComparator extends java.lang.Object implements java.util.Comparator<KElement>
| Constructor and Description |
|---|
SingleXPathComparator(java.lang.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) |
public SingleXPathComparator(java.lang.String xPath,
boolean pInvert)
xPath - the xpath in the context of this element to use for comparingpInvert - if true, sort backwards