Package dev.cel.common.values
Class IntValue
- java.lang.Object
-
- dev.cel.common.values.CelValue
-
- dev.cel.common.values.IntValue
-
@Immutable public final class IntValue extends CelValue
IntValue is a simple CelValue wrapper around Java longs.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CelTypecelType()The CelType that represents this value.static IntValuecreate(long value)booleanequals(java.lang.Object o)inthashCode()booleanisZeroValue()Returns true if theCelValue.value()is a zero value for its type.longlongValue()java.lang.Longvalue()The underlying value.
-
-
-
Method Detail
-
value
public java.lang.Long 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).
-
longValue
public long longValue()
-
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 IntValue create(long value)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
-