java.lang.Object
dev.argon.esexpr.ESExprCodec<long[]>
dev.argon.esexpr.codecs.LongArrayCodec
-
Nested Class Summary
Nested classes/interfaces inherited from class dev.argon.esexpr.ESExprCodec
ESExprCodec.FailurePath -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionlong[]decode(ESExpr expr, ESExprCodec.FailurePath path) Decode an ESExpr into a value.encode(long[] value) Encode a value into an ESExpr.booleanisEncodedEqual(long[] x, long[] 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
A 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<long[]>- Returns:
- The set of tags.
-
isEncodedEqual
public boolean isEncodedEqual(long[] x, long[] y) Description copied from class:ESExprCodecDetermines whether two values are equal when encoded as an `ESExpr`.- Specified by:
isEncodedEqualin classESExprCodec<long[]>- 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<long[]>- Parameters:
value- The value to encode.- Returns:
- The encoded ESExpr.
-
decode
Description copied from class:ESExprCodecDecode an ESExpr into a value.- Specified by:
decodein classESExprCodec<long[]>- 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.
-