|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.saxon.sort.UppercaseFirstComparer
public class UppercaseFirstComparer
A Comparer 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 | |
---|---|
UppercaseFirstComparer(java.util.Comparator base)
|
Method Summary | |
---|---|
int |
compare(java.lang.Object a,
java.lang.Object b)
Compare two string objects: case is irrelevant, unless the strings are equal ignoring case, in which case uppercase comes first. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Constructor Detail |
---|
public UppercaseFirstComparer(java.util.Comparator base)
Method Detail |
---|
public int compare(java.lang.Object a, java.lang.Object b)
compare
in interface java.util.Comparator
java.lang.ClassCastException
- if the objects do not implement the CharSequence interface
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |