public static enum SortOrder.Order extends java.lang.Enum<SortOrder.Order>
| Enum Constant and Description |
|---|
ASCII
Similar to
lexical but the natural Java compare of class String is
applied. |
inverseASCII
This sorting order leads to the inverse sequence as
ASCII does. |
inverseLexical
This sorting order leads to the inverse sequence as
lexical does. |
inverseNumerical
The inverse numerically sort order leads to a sequence, where number
representing strings precede non number strings.
|
lexical
Lexical order.
|
numerical
The numerical order tries to interpret both compared character strings as real
numbers.
|
undefined
Illegal value, no sort order.
|
| Modifier and Type | Method and Description |
|---|---|
static SortOrder.Order |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SortOrder.Order[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SortOrder.Order undefined
public static final SortOrder.Order lexical
String.compareToIgnoreCase(java.lang.String) for details.public static final SortOrder.Order ASCII
lexical but the natural Java compare of class String is
applied. Comparison is done case sensitive. See Java documentation of String.compareTo(java.lang.String) for details.public static final SortOrder.Order numerical
Double.parseDouble(java.lang.String) to do so. If both
strings are found to be numbers then the string representing the smaller number
will precede the string representing the greater number.If only one string represents a number then this string will precede the non number.
If both strings don't represent numbers then they are sorted in ascending lexical order.
The final sort order is a sequence of raising numbers followed by a block of alphabetically ascending non number strings.
public static final SortOrder.Order inverseLexical
lexical does.public static final SortOrder.Order inverseASCII
ASCII does.public static final SortOrder.Order inverseNumerical
Please note, this sort order does not lead to the inverse sequence as
numerical does.
public static SortOrder.Order[] values()
for (SortOrder.Order c : SortOrder.Order.values()) System.out.println(c);
public static SortOrder.Order valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null