Package org.drools.model.operators
Enum MatchesOperator
- java.lang.Object
-
- java.lang.Enum<MatchesOperator>
-
- org.drools.model.operators.MatchesOperator
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<MatchesOperator>,Operator<java.lang.String,java.lang.String>,Operator.SingleValue<java.lang.String,java.lang.String>,Predicate2<java.lang.String,java.lang.String[]>
public enum MatchesOperator extends java.lang.Enum<MatchesOperator> implements Operator.SingleValue<java.lang.String,java.lang.String>
-
-
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.String s1, java.lang.String s2)java.lang.StringgetOperatorName()static MatchesOperatorvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static MatchesOperator[]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, 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 MatchesOperator INSTANCE
-
-
Method Detail
-
values
public static MatchesOperator[] 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 (MatchesOperator c : MatchesOperator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MatchesOperator 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.String s1, java.lang.String s2)- Specified by:
evalin interfaceOperator.SingleValue<java.lang.String,java.lang.String>
-
getOperatorName
public java.lang.String getOperatorName()
- Specified by:
getOperatorNamein interfaceOperator<java.lang.String,java.lang.String>
-
-