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