A
- The type of object this decoder deserializes.public static interface Decoder.Boxed<A>
Dynamic
.
This interface allows one to implement a Decoder
based on Decoder.decode(Dynamic)
.
Modifier and Type | Method and Description |
---|---|
<T> DataResult<(A,T)> |
decode(Dynamic<T> input)
Decodes the input into an object and returns the decoded object and remaining serialized data in a
DataResult . |
default Decoder<A> |
decoder()
Returns a
Decoder that performs the same actions as this boxed decoder. |
<T> DataResult<(A,T)> decode(Dynamic<T> input)
DataResult
.T
- The type of the serialized form.input
- The serialized data.DataResult
containing the decoded object and the remaining serialized data.Decoder.decode(Dynamic)
default Decoder<A> decoder()
Decoder
that performs the same actions as this boxed decoder.Decoder
that returns the result of
decode(Dynamic)
.Decoder
is implemented via Decoder.decode(DynamicOps, Object)
,
not via Decoder.decode(Dynamic)
.