public static enum Search.Order extends Enum<Search.Order> implements StringEnum
Enum Constant and Description |
---|
ASC
Sorting ascending.
|
DESC
Sorting descending.
|
Modifier and Type | Method and Description |
---|---|
String |
identifier()
Get sort order.
|
static Search.Order |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Search.Order[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Search.Order ASC
public static final Search.Order DESC
public static Search.Order[] values()
for (Search.Order c : Search.Order.values()) System.out.println(c);
public static Search.Order 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 null@NotNull(message="identifier string is never NULL") public String identifier()
identifier
in interface StringEnum
Copyright © 2012–2015 jcabi.com. All rights reserved.