Package org.drools.model.operators
Enum InOperator
- java.lang.Object
-
- java.lang.Enum<InOperator>
-
- org.drools.model.operators.InOperator
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<InOperator>,Operator<java.lang.Object,java.lang.Object>,Operator.MultipleValue<java.lang.Object,java.lang.Object>,Predicate2<java.lang.Object,java.lang.Object[]>
public enum InOperator extends java.lang.Enum<InOperator> implements Operator.MultipleValue<java.lang.Object,java.lang.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(java.lang.Object a, java.lang.Object[] bs)java.lang.StringgetOperatorName()booleanrequiresCoercion()static InOperatorvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static InOperator[]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
isCompatibleWithType
-
Methods inherited from interface org.drools.model.functions.Operator.MultipleValue
test
-
Methods inherited from interface org.drools.model.functions.Predicate2
negate, predicateInformation
-
-
-
-
Enum Constant Detail
-
INSTANCE
public static final InOperator INSTANCE
-
-
Method Detail
-
values
public static InOperator[] 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 (InOperator c : InOperator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static InOperator 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
-
eval
public boolean eval(java.lang.Object a, java.lang.Object[] bs)- Specified by:
evalin interfaceOperator.MultipleValue<java.lang.Object,java.lang.Object>
-
getOperatorName
public java.lang.String getOperatorName()
- Specified by:
getOperatorNamein interfaceOperator<java.lang.Object,java.lang.Object>
-
requiresCoercion
public boolean requiresCoercion()
- Specified by:
requiresCoercionin interfaceOperator<java.lang.Object,java.lang.Object>
-
-