public enum UnaryOperator extends java.lang.Enum<UnaryOperator>
Enum Constant and Description |
---|
IS_WHITESPACE
Evaluates whether the operand is a string of only whitespace characters
|
LENGTH
Evaluates the length of a collection
|
NOT
Evaluates to logical negation of the operand
|
Modifier and Type | Method and Description |
---|---|
abstract java.lang.Object |
eval(java.lang.Object operand) |
static UnaryOperator |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static UnaryOperator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UnaryOperator NOT
public static final UnaryOperator IS_WHITESPACE
public static final UnaryOperator LENGTH
public static UnaryOperator[] values()
for (UnaryOperator c : UnaryOperator.values()) System.out.println(c);
public static UnaryOperator valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic abstract java.lang.Object eval(java.lang.Object operand)
Copyright © 2018 The Apache Software Foundation. All rights reserved.