Enum Constant and Description |
---|
ASCENDING |
DESCENDING |
UNSPECIFIED |
Modifier and Type | Method and Description |
---|---|
static Direction |
fromCharacter(char c)
Returns ASCENDING for '+', DESCENDING for '-', UNSPECIFIED for anything
else.
|
Direction |
reverse()
Returns the reverse direction of this.
|
char |
toCharacter()
Returns '+' for ASCENDING, '-' for DESCENDING, and '~' for UNSPECIFIED.
|
static Direction |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Direction[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Direction ASCENDING
public static final Direction DESCENDING
public static final Direction UNSPECIFIED
public static Direction[] values()
for (Direction c : Direction.values()) System.out.println(c);
public static Direction 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 nullpublic Direction reverse()
public char toCharacter()
public static Direction fromCharacter(char c)
Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.