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
|
SingleAttributeComparator(java.lang.String pAttName,
boolean pInvert,
boolean checkNumber,
boolean caseSensitive) |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(KElement o1,
KElement o2) |
isCaseSensitive, isCheckNumber, setCaseSensitive, setCheckNumberpublic SingleAttributeComparator(java.lang.String pAttName,
boolean pInvert)
pAttName - the attribute to use for comparingpInvert - if true, sort backwardspublic SingleAttributeComparator(java.lang.String pAttName,
boolean pInvert,
boolean checkNumber,
boolean caseSensitive)
public 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)