java.lang.Object
dev.argon.esexpr.ESExprCodec<T>
dev.argon.esexpr.codecs.IntCodecBase<T>
- Type Parameters:
T- The integer type.
- Direct Known Subclasses:
SignedByteCodec,SignedIntegerCodec,SignedLongCodec,SignedShortCodec,UnsignedByteCodec,UnsignedIntegerCodec,UnsignedLongCodec,UnsignedShortCodec
Base type for sized integer codecs.
-
Nested Class Summary
Nested classes/interfaces inherited from class dev.argon.esexpr.ESExprCodec
ESExprCodec.FailurePath -
Method Summary
Modifier and TypeMethodDescriptionfinal Tdecode(ESExpr expr, ESExprCodec.FailurePath path) Decode an ESExpr into a value.final ESExprEncode a value into an ESExpr.final ESExprTagSettags()Gets the set of tags of values for this type.Methods inherited from class dev.argon.esexpr.ESExprCodec
decode, isEncodedEqual, optionalCodec
-
Method Details
-
tags
Description copied from class:ESExprCodecGets the set of tags of values for this type.- Specified by:
tagsin classESExprCodec<T>- Returns:
- The set of tags.
-
encode
Description copied from class:ESExprCodecEncode a value into an ESExpr.- Specified by:
encodein classESExprCodec<T>- 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<T>- 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.
-