Package fr.paris.lutece.plugins.crm.util
Enum OperatorEnum
- java.lang.Object
-
- java.lang.Enum<OperatorEnum>
-
- fr.paris.lutece.plugins.crm.util.OperatorEnum
-
- All Implemented Interfaces:
Serializable,Comparable<OperatorEnum>
public enum OperatorEnum extends Enum<OperatorEnum>
OperatorEnum
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EQUALGREATERGREATER_OR_EQUALLOWERLOWER_OR_EQUAL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetId()Get the id of the operatorStringtoString()Get the String value of the operatorstatic OperatorEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static OperatorEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EQUAL
public static final OperatorEnum EQUAL
-
GREATER
public static final OperatorEnum GREATER
-
LOWER
public static final OperatorEnum LOWER
-
GREATER_OR_EQUAL
public static final OperatorEnum GREATER_OR_EQUAL
-
LOWER_OR_EQUAL
public static final OperatorEnum LOWER_OR_EQUAL
-
-
Method Detail
-
values
public static OperatorEnum[] 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 (OperatorEnum c : OperatorEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OperatorEnum 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
-
getId
public int getId()
Get the id of the operator- Returns:
- the id of the operator
-
toString
public String toString()
Get the String value of the operator- Overrides:
toStringin classEnum<OperatorEnum>- Returns:
- the String value of the operator
-
-