Package org.kairosdb.client.builder
Enum QueryMetric.Order
- java.lang.Object
-
- java.lang.Enum<QueryMetric.Order>
-
- org.kairosdb.client.builder.QueryMetric.Order
-
- All Implemented Interfaces:
Serializable,Comparable<QueryMetric.Order>
- Enclosing class:
- QueryMetric
public static enum QueryMetric.Order extends Enum<QueryMetric.Order>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ASCENDINGDESCENDING
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoString()static QueryMetric.OrdervalueOf(String name)Returns the enum constant of this type with the specified name.static QueryMetric.Order[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ASCENDING
public static final QueryMetric.Order ASCENDING
-
DESCENDING
public static final QueryMetric.Order DESCENDING
-
-
Method Detail
-
values
public static QueryMetric.Order[] 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 (QueryMetric.Order c : QueryMetric.Order.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static QueryMetric.Order 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 nameNullPointerException- if the argument is null
-
toString
public String toString()
- Overrides:
toStringin classEnum<QueryMetric.Order>
-
-