public class FuzzyMapCodec<T> extends java.lang.Object implements MapCodec<T>
| Constructor and Description |
|---|
FuzzyMapCodec(java.util.List<MapCodec<? extends T>> codecs,
java.util.function.Function<T,MapCodec<? extends T>> selector) |
| Modifier and Type | Method and Description |
|---|---|
<S> Result<T> |
deserialize(DataConverter<S> converter,
java.util.Map<S,S> map) |
<S> Result<java.util.Map<S,S>> |
serialize(DataConverter<S> converter,
java.util.Map<S,S> map,
T element) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasCodec, defaulted, defaulted, either, elseGet, failing, field, lazyInit, map, mapThrowing, optionalKey, optionalLenientKey, recursive, requiredKey, unit, verifiedpublic <S> Result<java.util.Map<S,S>> serialize(DataConverter<S> converter, java.util.Map<S,S> map, T element)
serialize in interface MapSerializer<T>public <S> Result<T> deserialize(DataConverter<S> converter, java.util.Map<S,S> map)
deserialize in interface MapDeserializer<T>