public class Compare_en extends TextComparer
Modifier and Type | Field | Description |
---|---|---|
(package private) int |
caseOrder |
DEFAULT_CASE_ORDER, LOWERCASE_FIRST, UPPERCASE_FIRST
Constructor | Description |
---|---|
Compare_en() |
Modifier and Type | Method | Description |
---|---|---|
int |
compare(java.lang.Object a,
java.lang.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(java.lang.Object a, java.lang.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