net.sf.saxon.sort
public class AlphanumericCollator extends Object implements StringCollator, Serializable
Note: this StringCollator produces an ordering that is not compatible with equals().
Constructor Summary | |
---|---|
AlphanumericCollator(StringCollator base)
Create an alphanumeric collation |
Method Summary | |
---|---|
boolean | comparesEqual(String s1, String s2)
Compare two strings for equality. |
int | compareStrings(String s1, String s2)
Compare two objects. |
Object | getCollationKey(String s)
Get a collation key for two Strings. |
Parameters: base the collation used to compare the alphabetic parts of the string
Parameters: s1 the first string s2 the second string
Returns: true if and only if the strings are considered equal,
Returns: <0 if a0 if a>b