public class DynamicMapCodec<K,V> extends java.lang.Object implements Codec<java.util.Map<K,V>>
BOOLEAN, BYTE, BYTE_ARRAY, DOUBLE, FLOAT, INT_ARRAY, INT_ARRAY_UUID, INTEGER, LONG, LONG_ARRAY, RAW, SHORT, STRICT_STRING_UUID, STRING, STRING_IDENTIFIER, STRING_IDENTIFIER_PATH, UNIT, UNSIGNED_BYTE| Constructor and Description |
|---|
DynamicMapCodec(Codec<K> keyCodec,
java.util.function.Function<K,Codec<? extends V>> keyToValueCodec) |
| Modifier and Type | Method and Description |
|---|---|
<S> Result<java.util.Map<K,V>> |
deserialize(DataConverter<S> converter,
S data) |
<S> Result<S> |
serialize(DataConverter<S> converter,
java.util.Map<K,V> element) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompactList, compactList, compactListOf, converterFlatMap, converterVerified, either, failing, flatMap, identified, lazyInit, listOf, listOf, listOf, map, mapCodec, mapOf, mapOf, mapThrowing, minExclusiveFloat, minFloat, minInt, named, nonEmptyList, ofThrowing, oneOf, optionalListOf, optionalListOf, optionalListOf, rangedFloat, rangedInt, recursive, sizedString, typed, typed, typedMap, typedMap, unit, verified, withAlternative, withAlternativepublic <S> Result<S> serialize(DataConverter<S> converter, java.util.Map<K,V> element)
serialize in interface DataSerializer<java.util.Map<K,V>>public <S> Result<java.util.Map<K,V>> deserialize(DataConverter<S> converter, S data)
deserialize in interface DataDeserializer<java.util.Map<K,V>>