public static class KElement.SingleAttributeComparator extends KElement.SingleXPathComparator
| Constructor and Description |
|---|
SingleAttributeComparator(java.lang.String pAttName,
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 SingleAttributeComparator(java.lang.String pAttName,
boolean pInvert)
pAttName - the attribute to use for comparingpInvert - if true, sort backwardspublic int compare(KElement o1, KElement o2)
compare in interface java.util.Comparator<KElement>compare in class KElement.SingleXPathComparatoro1 - o2 - Comparator.compare(java.lang.Object, java.lang.Object)