public static enum QueryParameters.OrderDirection extends Enum<QueryParameters.OrderDirection>
Enum Constant and Description |
---|
ASCENDING
Ascending order.
|
DESCENDING
Descending order.
|
Modifier and Type | Method and Description |
---|---|
static String |
appendOrderBy(String orderBy,
String field,
QueryParameters.OrderDirection orderDirection)
Method to append the given orderBy clause with the new ordering.
|
String |
toString() |
static QueryParameters.OrderDirection |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static QueryParameters.OrderDirection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final QueryParameters.OrderDirection ASCENDING
public static final QueryParameters.OrderDirection DESCENDING
public static QueryParameters.OrderDirection[] values()
for (QueryParameters.OrderDirection c : QueryParameters.OrderDirection.values()) System.out.println(c);
public static QueryParameters.OrderDirection 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 static String appendOrderBy(String orderBy, String field, QueryParameters.OrderDirection orderDirection)
orderBy
- The current orderBy clausefield
- The field to order.orderDirection
- The direction to order in. If this is null, the method will return without
doing anything.public String toString()
toString
in class Enum<QueryParameters.OrderDirection>
Copyright © 2019 Communote team. All rights reserved.