net.sf.saxon.sort
Class LowercaseFirstCollator
java.lang.Object
net.sf.saxon.sort.LowercaseFirstCollator
- Serializable, StringCollator
public class LowercaseFirstCollator
extends java.lang.Object
A StringCollator that sorts lowercase before uppercase.
Case is irrelevant, unless the strings are equal ignoring
case, in which case lowercase comes first.
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.
|
LowercaseFirstCollator
public LowercaseFirstCollator(StringCollator base)
Create a LowercaseFirstCollator
base
- the base collator, which determines how characters are sorted irrespective of case
compareStrings
public 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.
- compareStrings in interface StringCollator
getCollationKey
public Object getCollationKey(String s)
Get a collation key for two Strings. The essential property of collation keys
is that if two values are equal under the collation, then the collation keys are
compare correctly under the equals() method.
- getCollationKey in interface StringCollator