Enum Case.NullBehaviour

java.lang.Object
java.lang.Enum<Case.NullBehaviour>
com.singularsys.jep.misc.functions.Case.NullBehaviour
All Implemented Interfaces:
Serializable, Comparable<Case.NullBehaviour>, java.lang.constant.Constable
Enclosing class:
Case

public static enum Case.NullBehaviour extends Enum<Case.NullBehaviour>
Action to take if first argument is null.
Since:
3.5
  • Enum Constant Details

    • ERROR

      public static final Case.NullBehaviour ERROR
      Generate an IllegalParameterException
    • RETURN_NULL

      public static final Case.NullBehaviour RETURN_NULL
      Returns null
    • TEST_ARG

      public static final Case.NullBehaviour TEST_ARG
      Tests if any case is null, return corresponding argument
  • Method Details

    • values

      public static Case.NullBehaviour[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static Case.NullBehaviour 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