Enum FilterOperand
- java.lang.Object
-
- java.lang.Enum<FilterOperand>
-
- cern.nxcals.api.backport.domain.core.constants.FilterOperand
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<FilterOperand>
public enum FilterOperand extends java.lang.Enum<FilterOperand>
The ValueFiltering defines the possible types of filters to apply
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDBValue()
static FilterOperand
getFilterOperandFor(java.lang.String value)
static FilterOperand
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static FilterOperand[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IN
public static final FilterOperand IN
Applicable for NUMERIC, STRING
-
NOT_IN
public static final FilterOperand NOT_IN
-
GREATER
public static final FilterOperand GREATER
Applicable for NUMERIC
-
LESS
public static final FilterOperand LESS
-
GREATER_OR_EQUALS
public static final FilterOperand GREATER_OR_EQUALS
-
LESS_OR_EQUALS
public static final FilterOperand LESS_OR_EQUALS
-
BETWEEN
public static final FilterOperand BETWEEN
-
EQUALS
public static final FilterOperand EQUALS
-
AND
public static final FilterOperand AND
-
OR
public static final FilterOperand OR
-
NONE
public static final FilterOperand NONE
-
-
Method Detail
-
values
public static FilterOperand[] 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 (FilterOperand c : FilterOperand.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FilterOperand valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getFilterOperandFor
public static FilterOperand getFilterOperandFor(java.lang.String value)
-
getDBValue
public java.lang.String getDBValue()
-
-