Package adams.core.io.lister
Enum Sorting
- java.lang.Object
-
- java.lang.Enum<Sorting>
-
- adams.core.io.lister.Sorting
-
- All Implemented Interfaces:
Serializable,Comparable<Sorting>
public enum Sorting extends Enum<Sorting>
The type of sorting.- Version:
- $Revision: 13700 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NO_SORTINGno sorting.SORT_BY_LAST_MODIFIEDsort by last mod.SORT_BY_NAMEsort by name.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SortingvalueOf(String name)Returns the enum constant of this type with the specified name.static Sorting[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static Sorting[] 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 (Sorting c : Sorting.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Sorting 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
-
-