public enum SortDirection extends java.lang.Enum<SortDirection>
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
SortDirection |
opposite() |
abstract <T extends java.lang.Comparable<? super T>> |
sort(java.util.List<T> list) |
abstract <T> void |
sort(java.util.List<T> list,
java.util.Comparator<? super T> comparator) |
static SortDirection |
valueOf(int value) |
static SortDirection |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SortDirection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SortDirection NONE
public static final SortDirection UP
public static final SortDirection DOWN
public static SortDirection[] values()
for (SortDirection c : SortDirection.values()) System.out.println(c);
public static SortDirection valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static SortDirection valueOf(int value)
public SortDirection opposite()
public abstract <T extends java.lang.Comparable<? super T>> void sort(java.util.List<T> list)
public abstract <T> void sort(java.util.List<T> list, java.util.Comparator<? super T> comparator)
public int getValue()