Package org.drools.base.util.index
Enum ConstraintTypeOperator
- java.lang.Object
-
- java.lang.Enum<ConstraintTypeOperator>
-
- org.drools.base.util.index.ConstraintTypeOperator
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ConstraintTypeOperator>
public enum ConstraintTypeOperator extends java.lang.Enum<ConstraintTypeOperator>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EQUALGREATER_OR_EQUALGREATER_THANLESS_OR_EQUALLESS_THANNOT_EQUALRANGEUNKNOWN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanInverse()static ConstraintTypeOperatordecode(java.lang.String operator)static ConstraintTypeOperatordecode(java.lang.String operator, boolean negated)java.lang.StringgetOperator()May be null.static ConstraintTypeOperatorgetType(Constraint constraint)ConstraintTypeOperatorinverse()booleanisAscending()booleanisComparison()booleanisDescending()booleanisEquality()booleanisIndexable()booleanisIndexableForNode(short nodeType, IndexableConstraint constraint, org.kie.api.KieBaseConfiguration config)ConstraintTypeOperatornegate()static ConstraintTypeOperatorvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ConstraintTypeOperator[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EQUAL
public static final ConstraintTypeOperator EQUAL
-
NOT_EQUAL
public static final ConstraintTypeOperator NOT_EQUAL
-
GREATER_THAN
public static final ConstraintTypeOperator GREATER_THAN
-
GREATER_OR_EQUAL
public static final ConstraintTypeOperator GREATER_OR_EQUAL
-
LESS_THAN
public static final ConstraintTypeOperator LESS_THAN
-
LESS_OR_EQUAL
public static final ConstraintTypeOperator LESS_OR_EQUAL
-
RANGE
public static final ConstraintTypeOperator RANGE
-
UNKNOWN
public static final ConstraintTypeOperator UNKNOWN
-
-
Method Detail
-
values
public static ConstraintTypeOperator[] 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 (ConstraintTypeOperator c : ConstraintTypeOperator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ConstraintTypeOperator 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
-
isComparison
public boolean isComparison()
-
isEquality
public boolean isEquality()
-
isAscending
public boolean isAscending()
-
isDescending
public boolean isDescending()
-
isIndexable
public boolean isIndexable()
-
getOperator
public java.lang.String getOperator()
May be null.- Returns:
- the operator string representation if does exists, null otherwise.
-
isIndexableForNode
public boolean isIndexableForNode(short nodeType, IndexableConstraint constraint, org.kie.api.KieBaseConfiguration config)
-
negate
public ConstraintTypeOperator negate()
-
canInverse
public boolean canInverse()
-
inverse
public ConstraintTypeOperator inverse()
-
decode
public static ConstraintTypeOperator decode(java.lang.String operator)
-
decode
public static ConstraintTypeOperator decode(java.lang.String operator, boolean negated)
-
getType
public static ConstraintTypeOperator getType(Constraint constraint)
-
-