public enum UnaryOperator extends Enum<UnaryOperator>
| Enum Constant and Description |
|---|
Abs
|value| operator.
|
Negate
-value operator.
|
Not
~value operator.
|
| Modifier and Type | Method and Description |
|---|---|
abstract Number |
eval(Number value)
Evaluates the operator.
|
static UnaryOperator |
valueOf(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 Abs
public static final UnaryOperator Negate
public static final UnaryOperator Not
public static UnaryOperator[] values()
for (UnaryOperator c : UnaryOperator.values()) System.out.println(c);
public static UnaryOperator 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 nullCopyright © 2023 Streamx. All rights reserved.