Package dev.cel.common.values
Class UintValue
- java.lang.Object
-
- dev.cel.common.values.CelValue
-
- dev.cel.common.values.UintValue
-
@Immutable public abstract class UintValue extends CelValue
UintValue represents CelValue for unsigned longs. This either leverages Guava's implementation ofUnsignedLong, or just holds a primitive long.
-
-
Constructor Summary
Constructors Constructor Description UintValue()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description CelTypecelType()The CelType that represents this value.static UintValuecreate(long value, boolean enableUnsignedLongs)static UintValuecreate(com.google.common.primitives.UnsignedLong value)booleanisZeroValue()Returns true if theCelValue.value()is a zero value for its type.abstract java.lang.Numbervalue()The underlying value.
-
-
-
Method Detail
-
value
public abstract java.lang.Number value()
Description copied from class:CelValueThe 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).
-
isZeroValue
public boolean isZeroValue()
Description copied from class:CelValueReturns true if theCelValue.value()is a zero value for its type.- Specified by:
isZeroValuein classCelValue
-
celType
public CelType celType()
Description copied from class:CelValueThe CelType that represents this value.
-
create
public static UintValue create(com.google.common.primitives.UnsignedLong value)
-
create
public static UintValue create(long value, boolean enableUnsignedLongs)
-
-