Package org.drools.model.operators
Enum ContainsOperator
- java.lang.Object
-
- java.lang.Enum<ContainsOperator>
-
- org.drools.model.operators.ContainsOperator
-
- All Implemented Interfaces:
Serializable,Comparable<ContainsOperator>,Operator<Object,Object>,Operator.SingleValue<Object,Object>,Predicate2<Object,Object[]>
public enum ContainsOperator extends Enum<ContainsOperator> implements Operator.SingleValue<Object,Object>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.drools.model.functions.Operator
Operator.MultipleValue<A,B>, Operator.Register, Operator.SingleValue<A,B>
-
Nested classes/interfaces inherited from interface org.drools.model.functions.Predicate2
Predicate2.Impl<A,B>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleaneval(Object container, Object value)StringgetOperatorName()booleanisCompatibleWithType(Class<?> type)static ContainsOperatorvalueOf(String name)Returns the enum constant of this type with the specified name.static ContainsOperator[]values()Returns an array containing the constants of this enum type, in the order they are declared.-
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Methods inherited from interface org.drools.model.functions.Operator
requiresCoercion
-
Methods inherited from interface org.drools.model.functions.Operator.SingleValue
test
-
Methods inherited from interface org.drools.model.functions.Predicate2
negate, predicateInformation
-
-
-
-
Enum Constant Detail
-
INSTANCE
public static final ContainsOperator INSTANCE
-
-
Method Detail
-
values
public static ContainsOperator[] 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 (ContainsOperator c : ContainsOperator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ContainsOperator 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
-
isCompatibleWithType
public boolean isCompatibleWithType(Class<?> type)
- Specified by:
isCompatibleWithTypein interfaceOperator<Object,Object>
-
eval
public boolean eval(Object container, Object value)
- Specified by:
evalin interfaceOperator.SingleValue<Object,Object>
-
getOperatorName
public String getOperatorName()
- Specified by:
getOperatorNamein interfaceOperator<Object,Object>
-
-