|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.sort.UppercaseFirstCollator
public class UppercaseFirstCollator
A Collator used for comparing strings, with upper case collated before lower case if the strings are otherwise equal. This is implemented as a wrapper around a collator that compares the strings ignoring case.
Constructor Summary | |
---|---|
UppercaseFirstCollator(StringCollator base)
Create an UppercaseFirstCollator |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UppercaseFirstCollator(StringCollator base)
base
- the base collator used to compare strings irrespective of caseMethod Detail |
---|
public int compareStrings(String a, String b)
compareStrings
in interface StringCollator
a
- the first stringb
- the second string
ClassCastException
- if the objects do not implement the CharSequence interfacepublic Object getCollationKey(String s)
getCollationKey
in interface StringCollator
s
- the string whose collation key is required
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |