Package org.drools.model
Enum Index.ConstraintType
- java.lang.Object
-
- java.lang.Enum<Index.ConstraintType>
-
- org.drools.model.Index.ConstraintType
-
- All Implemented Interfaces:
Serializable,Comparable<Index.ConstraintType>
public static enum Index.ConstraintType extends Enum<Index.ConstraintType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EQUALEXISTS_PROTOTYPE_FIELDFORALL_SELF_JOINGREATER_OR_EQUALGREATER_THANLESS_OR_EQUALLESS_THANNOT_EQUALRANGEUNKNOWN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <T,V>
BiPredicate<T,V>asPredicate()booleancanInverse()Index.ConstraintTypeinverse()booleanisAscending()booleanisComparison()booleanisDescending()Index.ConstraintTypenegate()static Index.ConstraintTypevalueOf(String name)Returns the enum constant of this type with the specified name.static Index.ConstraintType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EQUAL
public static final Index.ConstraintType EQUAL
-
NOT_EQUAL
public static final Index.ConstraintType NOT_EQUAL
-
GREATER_THAN
public static final Index.ConstraintType GREATER_THAN
-
GREATER_OR_EQUAL
public static final Index.ConstraintType GREATER_OR_EQUAL
-
LESS_THAN
public static final Index.ConstraintType LESS_THAN
-
LESS_OR_EQUAL
public static final Index.ConstraintType LESS_OR_EQUAL
-
RANGE
public static final Index.ConstraintType RANGE
-
FORALL_SELF_JOIN
public static final Index.ConstraintType FORALL_SELF_JOIN
-
EXISTS_PROTOTYPE_FIELD
public static final Index.ConstraintType EXISTS_PROTOTYPE_FIELD
-
UNKNOWN
public static final Index.ConstraintType UNKNOWN
-
-
Method Detail
-
values
public static Index.ConstraintType[] 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 (Index.ConstraintType c : Index.ConstraintType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Index.ConstraintType 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
-
negate
public Index.ConstraintType negate()
-
canInverse
public boolean canInverse()
-
asPredicate
public <T,V> BiPredicate<T,V> asPredicate()
-
inverse
public Index.ConstraintType inverse()
-
isComparison
public boolean isComparison()
-
isAscending
public boolean isAscending()
-
isDescending
public boolean isDescending()
-
-