Package com.liangjian.web.common.dynamic
Enum OperateType
- java.lang.Object
-
- java.lang.Enum<OperateType>
-
- com.liangjian.web.common.dynamic.OperateType
-
- All Implemented Interfaces:
Serializable
,Comparable<OperateType>
public enum OperateType extends Enum<OperateType>
Created by huangziqi on 2019/12/17 判断类型的枚举
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OperateType
valueOf(String name)
Returns the enum constant of this type with the specified name.static OperateType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Equal
public static final OperateType Equal
-
NotEqual
public static final OperateType NotEqual
-
Less
public static final OperateType Less
-
LessEqual
public static final OperateType LessEqual
-
Greater
public static final OperateType Greater
-
GreaterEqual
public static final OperateType GreaterEqual
-
Contains
public static final OperateType Contains
-
StartWith
public static final OperateType StartWith
-
EndWith
public static final OperateType EndWith
-
-
Method Detail
-
values
public static OperateType[] 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 (OperateType c : OperateType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OperateType 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
-
-