net.sf.saxon.sort
public class LowercaseFirstCollator extends Object implements StringCollator, Serializable
Case is irrelevant, unless the strings are equal ignoring case, in which case lowercase comes first.
Constructor Summary | |
---|---|
LowercaseFirstCollator(StringCollator base)
Create a LowercaseFirstCollator |
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 lowercase comes first.
|
Object | getCollationKey(String s)
Get a collation key for two Strings. |
Parameters: base the base collator, which determines how characters are sorted 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 are of the wrong type for this Comparer