public class Compare_en extends TextComparer
Modifier and Type | Field and Description |
---|---|
(package private) int |
caseOrder |
DEFAULT_CASE_ORDER, LOWERCASE_FIRST, UPPERCASE_FIRST
Constructor and Description |
---|
Compare_en() |
Modifier and Type | Method and Description |
---|---|
int |
compare(Object a,
Object b)
Compare two string objects, in three phases:
(a) ignoring accents and case
(b) if still equal, ignoring case
(c) if still equal, taking case into account
|
Comparer |
setCaseOrder(int caseOrder)
Set case order
|
setDataType, setOrder
public int compare(Object a, Object b)
public Comparer setCaseOrder(int caseOrder)
TextComparer
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