-
- All Implemented Interfaces:
public final class NullableAdapter<T extends Object> extends ScaleCodecAdapter<T>
An adapter a generic nullable type
-
-
Constructor Summary
Constructors Constructor Description NullableAdapter(ScaleCodecAdapterProvider adapterResolver)
-
Method Summary
Modifier and Type Method Description Tread(ByteArrayReader reader, KType type, List<Annotation> annotations)Reads (decodes) data to specified type ByteArraywrite(T obj, KType type, List<Annotation> annotations)Writes (encodes) the object -
-
Constructor Detail
-
NullableAdapter
NullableAdapter(ScaleCodecAdapterProvider adapterResolver)
-
-
Method Detail
-
read
T read(ByteArrayReader reader, KType type, List<Annotation> annotations)
Reads (decodes) data to specified type
- Parameters:
reader- a ByteArray reader thattype- expected typeannotations- a list of annotations.
-
-
-
-