Package org.xcsp.common
Enum Types.TypeConditionOperator
- java.lang.Object
-
- java.lang.Enum<Types.TypeConditionOperator>
-
- org.xcsp.common.Types.TypeConditionOperator
-
- All Implemented Interfaces:
Serializable
,Comparable<Types.TypeConditionOperator>
- Enclosing class:
- Types
public static enum Types.TypeConditionOperator extends Enum<Types.TypeConditionOperator>
The enum type specifying the different types of operators that can be used in conditions.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isSet()
Returns true iff this constant corresponds to a set operator.Types.TypeConditionOperatorRel
toRel()
Returns the corresponding specialized TypeConditionOperatorRel for this constant, or null if this constant is a set operator.Types.TypeConditionOperatorSet
toSet()
Returns the corresponding specialized TypeConditionOperatorSet for this constant, or null if this constant is a relational operator.static Types.TypeConditionOperator
valueOf(String name)
Returns the enum constant of this type with the specified name.static Types.TypeConditionOperator[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
LT
public static final Types.TypeConditionOperator LT
-
LE
public static final Types.TypeConditionOperator LE
-
GE
public static final Types.TypeConditionOperator GE
-
GT
public static final Types.TypeConditionOperator GT
-
NE
public static final Types.TypeConditionOperator NE
-
EQ
public static final Types.TypeConditionOperator EQ
-
IN
public static final Types.TypeConditionOperator IN
-
NOTIN
public static final Types.TypeConditionOperator NOTIN
-
-
Method Detail
-
values
public static Types.TypeConditionOperator[] 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 (Types.TypeConditionOperator c : Types.TypeConditionOperator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Types.TypeConditionOperator 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
-
toRel
public Types.TypeConditionOperatorRel toRel()
Returns the corresponding specialized TypeConditionOperatorRel for this constant, or null if this constant is a set operator.
-
toSet
public Types.TypeConditionOperatorSet toSet()
Returns the corresponding specialized TypeConditionOperatorSet for this constant, or null if this constant is a relational operator.
-
isSet
public boolean isSet()
Returns true iff this constant corresponds to a set operator.
-
-