public class StringComparer extends TextComparer
DEFAULT_CASE_ORDER, LOWERCASE_FIRST, UPPERCASE_FIRST| Constructor and Description |
|---|
StringComparer() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(Object a,
Object b)
Compare two string objects using default collating
|
Comparer |
setCaseOrder(int caseOrder)
Set case order
|
setDataType, setOrderpublic int compare(Object a, Object b)
compare in class ComparerClassCastException - if the objects are of the wrong type for this Comparerpublic Comparer setCaseOrder(int caseOrder)
setCaseOrder in class TextComparercaseOrder - one of DEFAULT_CASE_ORDER, LOWERCASE_FIRST, or UPPERCASE_FIRST.
Indicates whether upper case letters precede or follow lower case letters in the ordering