public enum ComparatorOrder extends Enum<ComparatorOrder>
| Enum Constant and Description |
|---|
ASCENDING |
DESCENDING |
| Modifier and Type | Method and Description |
|---|---|
static ComparatorOrder |
fromString(String order) |
String |
toString() |
static ComparatorOrder |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ComparatorOrder[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ComparatorOrder ASCENDING
public static final ComparatorOrder DESCENDING
public static ComparatorOrder[] values()
for (ComparatorOrder c : ComparatorOrder.values()) System.out.println(c);
public static ComparatorOrder valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static ComparatorOrder fromString(String order)
public String toString()
toString in class Enum<ComparatorOrder>Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.