Codec.ResultFunction<A>Decoder.Boxed<A>, Decoder.Simple<A>, Decoder.Terminal<A>BOOL, BYTE, BYTE_BUFFER, DOUBLE, EMPTY, FLOAT, INT, INT_STREAM, LONG, LONG_STREAM, PASSTHROUGH, SHORT, STRING| Constructor and Description |
|---|
CompoundListCodec(Codec<K> keyCodec,
Codec<V> elementCodec) |
| Modifier and Type | Method and Description |
|---|---|
<T> DataResult<(List<(K,V)>,T)> |
decode(DynamicOps<T> ops,
T input)
Decodes an object from the specified serialized data.
|
<T> DataResult<T> |
encode(List<(K,V)> input,
DynamicOps<T> ops,
T prefix)
Encodes an object into the specified serialized data.
|
boolean |
equals(Object o) |
int |
hashCode() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcheckRange, comapFlatMap, compoundList, deprecated, dispatch, dispatch, dispatchMap, dispatchMap, dispatchStable, doubleRange, either, fieldOf, flatComapMap, flatXmap, floatRange, intRange, list, listOf, mapEither, mapPair, mapResult, of, of, of, of, optionalField, optionalFieldOf, optionalFieldOf, optionalFieldOf, optionalFieldOf, orElse, orElse, orElse, orElseGet, orElseGet, orElseGet, pair, partialDispatch, promotePartial, simpleMap, stable, unboundedMap, unit, unit, withLifecycle, xmappublic <T> DataResult<(List<(K,V)>,T)> decode(DynamicOps<T> ops, T input)
DecoderDataResult.decode in interface Decoder<List<(K,V)>>T - The type of the serialized form.ops - The DynamicOps instance defining the serialized form.input - The serialized data.Pair containing the decoded object and the remaining serialized data, wrapped in a DataResult.public <T> DataResult<T> encode(List<(K,V)> input, DynamicOps<T> ops, T prefix)
EncoderDataResult.encode in interface Encoder<List<(K,V)>>T - The type of the serialized form.input - The object to serialize.ops - The DynamicOps instance defining the serialized form.prefix - The existing serialized data to append to.DataResult wrapping the serialized form of input, appended to prefix.