Package pl.put.poznan.transformer.logic
Enum SortAlgorithm.Order
- java.lang.Object
-
- java.lang.Enum<SortAlgorithm.Order>
-
- pl.put.poznan.transformer.logic.SortAlgorithm.Order
-
- All Implemented Interfaces:
Serializable,Comparable<SortAlgorithm.Order>
- Enclosing interface:
- SortAlgorithm
public static enum SortAlgorithm.Order extends Enum<SortAlgorithm.Order>
An enumeration type for holding information about sorting direction.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SortAlgorithm.OrdervalueOf(String name)Returns the enum constant of this type with the specified name.static SortAlgorithm.Order[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RISING
public static final SortAlgorithm.Order RISING
-
FALLING
public static final SortAlgorithm.Order FALLING
-
-
Method Detail
-
values
public static SortAlgorithm.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 (SortAlgorithm.Order c : SortAlgorithm.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 SortAlgorithm.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
-
-