Package io.lettuce.core
Enum GeoArgs.Sort
- java.lang.Object
-
- java.lang.Enum<GeoArgs.Sort>
-
- io.lettuce.core.GeoArgs.Sort
-
- All Implemented Interfaces:
Serializable
,Comparable<GeoArgs.Sort>
- Enclosing class:
- GeoArgs
public static enum GeoArgs.Sort extends Enum<GeoArgs.Sort>
Sort order.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GeoArgs.Sort
valueOf(String name)
Returns the enum constant of this type with the specified name.static GeoArgs.Sort[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
asc
public static final GeoArgs.Sort asc
ascending.
-
desc
public static final GeoArgs.Sort desc
descending.
-
none
public static final GeoArgs.Sort none
no sort order.
-
-
Method Detail
-
values
public static GeoArgs.Sort[] 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 (GeoArgs.Sort c : GeoArgs.Sort.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GeoArgs.Sort 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
-
-