public class LazyInitCodec<T> extends java.lang.Object implements Codec<T>
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 |
|---|
LazyInitCodec(java.util.function.Supplier<Codec<T>> codecSupplier) |
| Modifier and Type | Method and Description |
|---|---|
<S> Result<T> |
deserialize(DataConverter<S> converter,
S data) |
<S> Result<S> |
serialize(DataConverter<S> converter,
T 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, T element)
serialize in interface DataSerializer<T>public <S> Result<T> deserialize(DataConverter<S> converter, S data)
deserialize in interface DataDeserializer<T>