Package es.bsc.dataclay.util.filtering
Enum Condition.ConditionOp
- java.lang.Object
-
- java.lang.Enum<Condition.ConditionOp>
-
- es.bsc.dataclay.util.filtering.Condition.ConditionOp
-
- All Implemented Interfaces:
Serializable
,Comparable<Condition.ConditionOp>
- Enclosing class:
- Condition
public static enum Condition.ConditionOp extends Enum<Condition.ConditionOp>
Accepted operations for the condition check.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONTAINS
DIFFERENT
EQUALS
GREATER
GREATER_EQUALS
LESS
LESS_EQUALS
PREFIX
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Condition.ConditionOp
fromString(String op)
Method that retrieves the ConditionOp from the given string.static Condition.ConditionOp[]
getBooleanOps()
static Condition.ConditionOp[]
getNumericOps()
String
getOp()
static Condition.ConditionOp
valueOf(String name)
Returns the enum constant of this type with the specified name.static Condition.ConditionOp[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DIFFERENT
public static final Condition.ConditionOp DIFFERENT
-
LESS_EQUALS
public static final Condition.ConditionOp LESS_EQUALS
-
GREATER_EQUALS
public static final Condition.ConditionOp GREATER_EQUALS
-
CONTAINS
public static final Condition.ConditionOp CONTAINS
-
PREFIX
public static final Condition.ConditionOp PREFIX
-
LESS
public static final Condition.ConditionOp LESS
-
GREATER
public static final Condition.ConditionOp GREATER
-
EQUALS
public static final Condition.ConditionOp EQUALS
-
-
Method Detail
-
values
public static Condition.ConditionOp[] 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 (Condition.ConditionOp c : Condition.ConditionOp.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Condition.ConditionOp 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
-
getOp
public String getOp()
-
getNumericOps
public static Condition.ConditionOp[] getNumericOps()
-
getBooleanOps
public static Condition.ConditionOp[] getBooleanOps()
-
fromString
public static Condition.ConditionOp fromString(String op)
Method that retrieves the ConditionOp from the given string.- Parameters:
op
- operation in form of string.- Returns:
- operation in form of ConditionOp.
- Throws:
DataClayException
- if the operation is not supported.
-
-