java.io.Serializable, StringCollatorpublic class LowercaseFirstCollator extends java.lang.Object implements StringCollator, java.io.Serializable
Case is irrelevant, unless the strings are equal ignoring case, in which case lowercase comes first.
| Constructor | Description |
|---|---|
LowercaseFirstCollator(StringCollator base) |
Create a LowercaseFirstCollator
|
| Modifier and Type | Method | Description |
|---|---|---|
int |
compareStrings(java.lang.String a,
java.lang.String b) |
Compare two string objects: case is irrelevant, unless the strings are equal ignoring
case, in which case lowercase comes first.
|
java.lang.Object |
getCollationKey(java.lang.String s) |
Get a collation key for two Strings.
|
public LowercaseFirstCollator(StringCollator base)
base - the base collator, which determines how characters are sorted irrespective of casepublic int compareStrings(java.lang.String a,
java.lang.String b)
compareStrings in interface StringCollatora - the first stringb - the second stringjava.lang.ClassCastException - if the objects are of the wrong type for this Comparerpublic java.lang.Object getCollationKey(java.lang.String s)
getCollationKey in interface StringCollators - the string whose collation key is required