public enum Order extends Enum<Order>
| Modifier and Type | Method and Description |
|---|---|
boolean |
isEq() |
boolean |
isGt() |
boolean |
isGte() |
boolean |
isLt() |
boolean |
isLte() |
static <T> Order |
of(Comparator<T> comparator,
T lhs,
T rhs) |
static Order |
of(int order) |
int |
order() |
static Order |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Order[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Order LT
public static final Order EQ
public static final Order GT
public static Order[] values()
for (Order c : Order.values()) System.out.println(c);
public static Order 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 int order()
public boolean isEq()
public boolean isLte()
public boolean isGte()
public boolean isLt()
public boolean isGt()
public static Order of(int order)
public static <T> Order of(Comparator<T> comparator, T lhs, T rhs)
Copyright © 2012. All Rights Reserved.