Class EnumValue<E extends java.lang.Enum<E>>


  • @Immutable(containerOf="E")
    public abstract class EnumValue<E extends java.lang.Enum<E>>
    extends CelValue
    EnumValue is a simple CelValue wrapper around Java enums.

    Note: CEL-Java currently does not support strongly typed enum. This value class will not be used until the said support is added in.

    • Constructor Detail

      • EnumValue

        public EnumValue()
    • Method Detail

      • value

        public abstract java.lang.Enum<E> value()
        Description copied from class: CelValue
        The underlying value. This is typically the Java native value or a derived instance of CelValue (ex: an element in lists or key/value pair in maps).
        Specified by:
        value in class CelValue
      • celType

        public CelType celType()
        Description copied from class: CelValue
        The CelType that represents this value.
        Specified by:
        celType in class CelValue
      • create

        public static <E extends java.lang.Enum<E>> EnumValue<E> create​(java.lang.Enum<E> value)