com.stackmob.sdk.api
Enum StackMobQuery.Ordering
java.lang.Object
java.lang.Enum<StackMobQuery.Ordering>
com.stackmob.sdk.api.StackMobQuery.Ordering
- All Implemented Interfaces:
- Serializable, Comparable<StackMobQuery.Ordering>
- Enclosing class:
- StackMobQuery
public static enum StackMobQuery.Ordering
- extends Enum<StackMobQuery.Ordering>
Represents ascending or descending order
DESCENDING
public static final StackMobQuery.Ordering DESCENDING
ASCENDING
public static final StackMobQuery.Ordering ASCENDING
values
public static StackMobQuery.Ordering[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (StackMobQuery.Ordering c : StackMobQuery.Ordering.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static StackMobQuery.Ordering valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
toString
public String toString()
- Overrides:
toString in class Enum<StackMobQuery.Ordering>
Copyright © 2012 StackMob. All Rights Reserved.