net.sf.saxon.sort
public interface StringCollator extends Serializable
Method Summary | |
---|---|
boolean | comparesEqual(String s1, String s2)
Compare two strings for equality. |
int | compareStrings(String o1, String o2)
Compare two strings |
Object | getCollationKey(String s)
Get a collation key for two Strings. |
Parameters: s1 the first string s2 the second string
Returns: true if and only if the strings are considered equal,
Parameters: o1 the first string o2 the second string
Returns: 0 if the strings are considered equal, a negative integer if the first string is less than the second, a positive integer if the first string is greater than the second
Parameters: s the string whose collation key is required
Returns: the collation key