public enum Operator extends Enum<Operator> implements BinaryOperator<Object>
BinaryOperator instances that handle common operations for traversal steps.| Enum Constant and Description | 
|---|
| addAllTakes all objects in the second  Collectionand adds them to the first. | 
| andApplies "and" to boolean values. | 
| assignThe new incoming value (i.e. | 
| divA division function. | 
| maxSelects the larger of the values. | 
| minSelects the smaller of the values. | 
| minusA subtraction function. | 
| multA multiplication function. | 
| orApplies "or" to boolean values. | 
| sumAn addition function. | 
| sumLongSums 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, valueOfmaxBy, minByandThen, applypublic static final Operator sum
NumberHelper.add(Number, Number)public static final Operator minus
NumberHelper.sub(Number, Number)public static final Operator mult
NumberHelper.mul(Number, Number)public static final Operator div
NumberHelper.div(Number, Number)public static final Operator min
NumberHelper.min(Number, Number)public static final Operator max
NumberHelper.max(Number, Number)public static final Operator assign
Operator.public static final Operator and
     a = true, b = null -> true
     a = false, b = null -> false
     a = null, b = true -> true
     a = null, b = false -> false
     a = null, b = null -> null
 public static final Operator or
     a = true, b = null -> true
     a = false, b = null -> false
     a = null, b = true -> true
     a = null, b = false -> false
     a = null, b = null -> null
 public static final Operator addAll
Collection and adds them to the first. If the first is null,
 then the second Collection is returned and if the second is null then the first is returned.
 If both are null then null is returned. Arguments must be of type Map or
 Collection.
 
 The semantics described above for Collection are the same when applied to a Map.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–2023 Apache Software Foundation. All rights reserved.