|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectnet.sf.saxon.sort.LowercaseFirstCollator
public class LowercaseFirstCollator
A StringCollator that sorts lowercase before uppercase.
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 | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LowercaseFirstCollator(StringCollator base)
base - the base collator, which determines how characters are sorted irrespective of case| Method Detail |
|---|
public int compareStrings(java.lang.String a,
java.lang.String b)
compareStrings in interface StringCollatora - the first stringb - the second string
java.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
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||