Enum Operator

    • Enum Constant Detail

      • assign

        public static final Operator assign
        The new incoming value (i.e. the second value to the function) is returned unchanged result in the assignment of that value to the object of the Operator.
        Since:
        3.1.0-incubating
      • and

        public static final Operator and
        Applies "and" to boolean values.
             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
         
        Since:
        3.2.0-incubating
      • or

        public static final Operator or
        Applies "or" to boolean values.
             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
         
        Since:
        3.2.0-incubating
      • addAll

        public static final Operator addAll
        Takes all objects in the second 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.

        Since:
        3.2.0-incubating
      • sumLong

        public static final Operator sumLong
        Sums and adds long values.
        Since:
        3.2.0-incubating
    • Method Detail

      • values

        public static Operator[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Operator c : Operator.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Operator valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null