net.sf.saxon.sort
public class UppercaseFirstCollator extends Object implements StringCollator, Serializable
Constructor Summary | |
---|---|
UppercaseFirstCollator(StringCollator base)
Create an UppercaseFirstCollator |
Method Summary | |
---|---|
boolean | comparesEqual(String s1, String s2)
Compare two strings for equality. |
int | compareStrings(String a, String b)
Compare two string objects: case is irrelevant, unless the strings are equal ignoring
case, in which case uppercase comes first. |
Object | getCollationKey(String s)
Get a collation key for two Strings. |
Parameters: base the base collator used to compare strings irrespective of case
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
Throws: ClassCastException if the objects do not implement the CharSequence interface