public enum SortOptions extends Enum<SortOptions>
Enum Constant and Description |
---|
BYTE
Sort using term values as encoded Bytes.
|
CUSTOM
Sort using a custom Comparator.
|
DOUBLE
Sort using term values as encoded Doubles.
|
FLOAT
Sort using term values as encoded Floats.
|
INT
Sort using term values as encoded Integers.
|
LONG
Sort using term values as encoded Longs.
|
NONE
No sort options
|
SHORT
Sort using term values as encoded Shorts.
|
STRING
Sort using term values as Strings.
|
STRING_VAL
Sort using term values as Strings, but comparing by
value (using String.compareTo) for all comparisons.
|
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
static SortOptions |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SortOptions[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SortOptions NONE
public static final SortOptions STRING
public static final SortOptions INT
public static final SortOptions FLOAT
public static final SortOptions LONG
public static final SortOptions DOUBLE
public static final SortOptions SHORT
public static final SortOptions CUSTOM
public static final SortOptions BYTE
public static final SortOptions STRING_VAL
String
, which
uses ordinals to do the sorting.public static SortOptions[] values()
for (SortOptions c : SortOptions.values()) System.out.println(c);
public static SortOptions valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getValue()
Copyright © 2016. All Rights Reserved.