| Enum Constant and Description |
|---|
GREATER_THAN
大于(>)。支持int、long、float、double。
|
GREATER_THAN_EQUALS
大于等于(>=)。支持int、long、float、double。
|
IS_EQUALS
等于(==)。支持String、boolean、int、long、float、double、char。
|
IS_NULL
为空(==null)。支持Object类型,包括String。这时不需要value参数。
|
LESS_THAN
小于(<)。支持int、long、float、double。
|
LESS_THAN_EQUALS
小于等于(<=)。支持int、long、float、double。
|
NOT_EQUALS
不等于(!=)。支持String、boolean、int、long、float、double、char。
|
NOT_NULL
不为空(!=null)。支持Object类型,包括String。这时不需要value参数。
|
| Modifier and Type | Method and Description |
|---|---|
static Compare |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Compare[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Compare IS_EQUALS
public static final Compare NOT_EQUALS
public static final Compare GREATER_THAN
public static final Compare GREATER_THAN_EQUALS
public static final Compare LESS_THAN
public static final Compare LESS_THAN_EQUALS
public static final Compare IS_NULL
public static final Compare NOT_NULL
public static Compare[] values()
for (Compare c : Compare.values()) System.out.println(c);
public static Compare 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 null