Package org.kiwiproject.spring.data
Enum KiwiSort.Direction
- java.lang.Object
-
- java.lang.Enum<KiwiSort.Direction>
-
- org.kiwiproject.spring.data.KiwiSort.Direction
-
- All Implemented Interfaces:
Serializable
,Comparable<KiwiSort.Direction>
- Enclosing class:
- KiwiSort
public static enum KiwiSort.Direction extends Enum<KiwiSort.Direction>
Sort direction.
-
-
Field Summary
Fields Modifier and Type Field Description boolean
ascending
Accessible via a getter method as well as direct field access.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KiwiSort.Direction
valueOf(String name)
Returns the enum constant of this type with the specified name.static KiwiSort.Direction[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ASC
public static final KiwiSort.Direction ASC
An ascending sort.
-
DESC
public static final KiwiSort.Direction DESC
A descending sort.
-
-
Method Detail
-
values
public static KiwiSort.Direction[] 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 (KiwiSort.Direction c : KiwiSort.Direction.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KiwiSort.Direction 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
-
-