public enum StringLengthWithOperator extends Enum<StringLengthWithOperator> implements Operator.SingleValue<String,Integer>
Operator.MultipleValue<A,B>, Operator.Register, Operator.SingleValue<A,B>
Predicate2.Impl<A,B>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
boolean |
eval(String s1,
Integer length) |
String |
getOperatorName() |
static StringLengthWithOperator |
valueOf(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.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
test
requiresCoercion
negate
public static final StringLengthWithOperator INSTANCE
public static StringLengthWithOperator[] values()
for (StringLengthWithOperator c : StringLengthWithOperator.values()) System.out.println(c);
public static StringLengthWithOperator valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean eval(String s1, Integer length)
eval
in interface Operator.SingleValue<String,Integer>
public String getOperatorName()
getOperatorName
in interface Operator<String,Integer>
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.