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 |
|---|
UnboundedMapCodec(Codec<K> keyCodec,
Codec<V> elementCodec) |
| Modifier and Type | Method and Description |
|---|---|
<T> DataResult<(Map<K,V>,T)> |
decode(DynamicOps<T> ops,
T input)
Decodes an object from the specified serialized data.
|
Codec<V> |
elementCodec() |
<T> DataResult<T> |
encode(Map<K,V> input,
DynamicOps<T> ops,
T prefix)
Encodes an object into the specified serialized data.
|
boolean |
equals(Object o) |
int |
hashCode() |
Codec<K> |
keyCodec() |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitdecode, encodecheckRange, 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 Codec<V> elementCodec()
elementCodec in interface BaseMapCodec<K,V>public <T> DataResult<(Map<K,V>,T)> decode(DynamicOps<T> ops, T input)
DecoderDataResult.decode in interface Decoder<Map<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(Map<K,V> input, DynamicOps<T> ops, T prefix)
EncoderDataResult.encode in interface Encoder<Map<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.