Package org.drools.model.operators
Enum SoundsLikeOperator
- java.lang.Object
-
- java.lang.Enum<SoundsLikeOperator>
-
- org.drools.model.operators.SoundsLikeOperator
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<SoundsLikeOperator>,Operator<java.lang.String,java.lang.String>,Operator.SingleValue<java.lang.String,java.lang.String>,Predicate2<java.lang.String,java.lang.String[]>
public enum SoundsLikeOperator extends java.lang.Enum<SoundsLikeOperator> 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
-
Field Summary
Fields Modifier and Type Field Description static char[]MAP
-
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 java.lang.Stringsoundex(java.lang.String s)static SoundsLikeOperatorvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static SoundsLikeOperator[]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 SoundsLikeOperator INSTANCE
-
-
Method Detail
-
values
public static SoundsLikeOperator[] 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 (SoundsLikeOperator c : SoundsLikeOperator.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SoundsLikeOperator 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>
-
soundex
public static java.lang.String soundex(java.lang.String s)
-
-