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, setOrder
public int compare(Object a, Object b)
compare
in class Comparer
ClassCastException
- if the objects are of the wrong type for this Comparerpublic Comparer setCaseOrder(int caseOrder)
setCaseOrder
in class TextComparer
caseOrder
- one of DEFAULT_CASE_ORDER, LOWERCASE_FIRST, or UPPERCASE_FIRST.
Indicates whether upper case letters precede or follow lower case letters in the ordering