Package dev.cel.extensions
Enum CelOptionalLibrary.Function
- java.lang.Object
-
- java.lang.Enum<CelOptionalLibrary.Function>
-
- dev.cel.extensions.CelOptionalLibrary.Function
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<CelOptionalLibrary.Function>
- Enclosing class:
- CelOptionalLibrary
public static enum CelOptionalLibrary.Function extends java.lang.Enum<CelOptionalLibrary.Function>
Enumerations of function names used for supporting optionals.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description HAS_VALUE
OPTIONAL_NONE
OPTIONAL_OF
OPTIONAL_OF_NON_ZERO_VALUE
OR
OR_VALUE
VALUE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFunction()
static CelOptionalLibrary.Function
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static CelOptionalLibrary.Function[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VALUE
public static final CelOptionalLibrary.Function VALUE
-
HAS_VALUE
public static final CelOptionalLibrary.Function HAS_VALUE
-
OPTIONAL_NONE
public static final CelOptionalLibrary.Function OPTIONAL_NONE
-
OPTIONAL_OF
public static final CelOptionalLibrary.Function OPTIONAL_OF
-
OPTIONAL_OF_NON_ZERO_VALUE
public static final CelOptionalLibrary.Function OPTIONAL_OF_NON_ZERO_VALUE
-
OR
public static final CelOptionalLibrary.Function OR
-
OR_VALUE
public static final CelOptionalLibrary.Function OR_VALUE
-
-
Method Detail
-
values
public static CelOptionalLibrary.Function[] 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 (CelOptionalLibrary.Function c : CelOptionalLibrary.Function.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CelOptionalLibrary.Function valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getFunction
public java.lang.String getFunction()
-
-