org.drools.core.util.index
Enum IndexUtil.ConstraintType
java.lang.Object
java.lang.Enum<IndexUtil.ConstraintType>
org.drools.core.util.index.IndexUtil.ConstraintType
- All Implemented Interfaces:
- Serializable, Comparable<IndexUtil.ConstraintType>
- Enclosing class:
- IndexUtil
public static enum IndexUtil.ConstraintType
- extends Enum<IndexUtil.ConstraintType>
EQUAL
public static final IndexUtil.ConstraintType EQUAL
NOT_EQUAL
public static final IndexUtil.ConstraintType NOT_EQUAL
GREATER_THAN
public static final IndexUtil.ConstraintType GREATER_THAN
GREATER_OR_EQUAL
public static final IndexUtil.ConstraintType GREATER_OR_EQUAL
LESS_THAN
public static final IndexUtil.ConstraintType LESS_THAN
LESS_OR_EQUAL
public static final IndexUtil.ConstraintType LESS_OR_EQUAL
RANGE
public static final IndexUtil.ConstraintType RANGE
UNKNOWN
public static final IndexUtil.ConstraintType UNKNOWN
values
public static IndexUtil.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 (IndexUtil.ConstraintType c : IndexUtil.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 IndexUtil.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 name
NullPointerException - if the argument is null
isComparison
public boolean isComparison()
isAscending
public boolean isAscending()
isDescending
public boolean isDescending()
isIndexable
public boolean isIndexable()
isIndexableForNode
public boolean isIndexableForNode(short nodeType)
decode
public static IndexUtil.ConstraintType decode(String operator)
getType
public static IndexUtil.ConstraintType getType(Constraint constraint)
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.