public enum Operator extends Enum<Operator> implements BinaryOperator<Object>
BinaryOperator
instances that handle common operations for traversal steps.Enum Constant and Description |
---|
addAll
Takes all objects in the second
Collection and adds them to the first. |
and
Applies "and" to boolean values.
|
assign
The new incoming value (i.e.
|
div
A division function.
|
max
Selects the larger of the values.
|
min
Selects the smaller of the values.
|
minus
A subtraction function.
|
mult
A multiplication function.
|
or
Applies "or" to boolean values.
|
sum
An addition function.
|
sumLong
Sums and adds long values.
|
Modifier and Type | Method and Description |
---|---|
static Operator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Operator[] |
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
maxBy, minBy
andThen, apply
public static final Operator sum
public static final Operator minus
public static final Operator mult
public static final Operator div
public static final Operator min
public static final Operator max
public static final Operator assign
Operator
.public static final Operator and
public static final Operator or
public static final Operator addAll
Collection
and adds them to the first.public static final Operator sumLong
public static Operator[] values()
for (Operator c : Operator.values()) System.out.println(c);
public static Operator 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 © 2013–2022 Apache Software Foundation. All rights reserved.