public static enum HstQueryBuilder.Order extends Enum<HstQueryBuilder.Order>
Modifier and Type | Method and Description |
---|---|
static HstQueryBuilder.Order |
fromString(String order) |
static HstQueryBuilder.Order |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HstQueryBuilder.Order[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HstQueryBuilder.Order DESC
public static final HstQueryBuilder.Order ASC
public static HstQueryBuilder.Order[] values()
for (HstQueryBuilder.Order c : HstQueryBuilder.Order.values()) System.out.println(c);
public static HstQueryBuilder.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 nullpublic static HstQueryBuilder.Order fromString(String order)
order
- the string representative of the order. The values desc
and descending
(case
insensitive) result in DESC
and all other values including null
will result
in ASC
being retured.HstQueryBuilder.Order
enum constant DESC
or ASC
depending on order
Copyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.