public enum TokenOrder extends Enum<TokenOrder>
When ordering tokens, the null value is always considered the highest value.
Enum Constant and Description |
---|
ASCENDING
The ordering from lowest to highest value.
|
DESCENDING
The ordering from highest to least value.
|
Modifier and Type | Method and Description |
---|---|
int |
getMultiplier()
Gets the multiplier associated with the ordering.
|
String |
getShortName()
Gets an abbreviated name for the ordering.
|
static TokenOrder |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TokenOrder[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TokenOrder ASCENDING
public static final TokenOrder DESCENDING
public static TokenOrder[] values()
for (TokenOrder c : TokenOrder.values()) System.out.println(c);
public static TokenOrder 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 String getShortName()
public int getMultiplier()
compare()
to get the appropriate sign
reflecting the ordering.Copyright © 2021 Actian Corporation. All rights reserved.