java.lang.Object
dev.argon.esexpr.ESExprCodec<org.eclipse.collections.api.list.primitive.ImmutableLongList>
dev.argon.esexpr.codecs.ImmutableLongListCodec
public class ImmutableLongListCodec
extends ESExprCodec<org.eclipse.collections.api.list.primitive.ImmutableLongList>
A codec for Array64 values.
-
Nested Class Summary
Nested classes/interfaces inherited from class dev.argon.esexpr.ESExprCodec
ESExprCodec.FailurePath -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ESExprCodec<org.eclipse.collections.api.list.primitive.ImmutableLongList> A codec for binary values. -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.collections.api.list.primitive.ImmutableLongListdecode(ESExpr expr, ESExprCodec.FailurePath path) Decode an ESExpr into a value.encode(org.eclipse.collections.api.list.primitive.ImmutableLongList value) Encode a value into an ESExpr.booleanisEncodedEqual(org.eclipse.collections.api.list.primitive.ImmutableLongList x, org.eclipse.collections.api.list.primitive.ImmutableLongList y) Determines whether two values are equal when encoded as an `ESExpr`.tags()Gets the set of tags of values for this type.Methods inherited from class dev.argon.esexpr.ESExprCodec
decode, optionalCodec
-
Field Details
-
INSTANCE
public static final ESExprCodec<org.eclipse.collections.api.list.primitive.ImmutableLongList> INSTANCEA codec for binary values.
-
-
Method Details
-
tags
Description copied from class:ESExprCodecGets the set of tags of values for this type.- Specified by:
tagsin classESExprCodec<org.eclipse.collections.api.list.primitive.ImmutableLongList>- Returns:
- The set of tags.
-
isEncodedEqual
public boolean isEncodedEqual(org.eclipse.collections.api.list.primitive.ImmutableLongList x, org.eclipse.collections.api.list.primitive.ImmutableLongList y) Description copied from class:ESExprCodecDetermines whether two values are equal when encoded as an `ESExpr`.- Specified by:
isEncodedEqualin classESExprCodec<org.eclipse.collections.api.list.primitive.ImmutableLongList>- Parameters:
x- The first value.y- The second value.- Returns:
- true iff the values are equal when encoded.
-
encode
Description copied from class:ESExprCodecEncode a value into an ESExpr.- Specified by:
encodein classESExprCodec<org.eclipse.collections.api.list.primitive.ImmutableLongList>- Parameters:
value- The value to encode.- Returns:
- The encoded ESExpr.
-
decode
public org.eclipse.collections.api.list.primitive.ImmutableLongList decode(ESExpr expr, ESExprCodec.FailurePath path) throws DecodeException Description copied from class:ESExprCodecDecode an ESExpr into a value.- Specified by:
decodein classESExprCodec<org.eclipse.collections.api.list.primitive.ImmutableLongList>- Parameters:
expr- The ESExpr to decode.path- The path of the current value within the decoded object for diagnostic purposes.- Returns:
- The decoded value.
- Throws:
DecodeException- when the value cannot be decoded.
-