-
- All Implemented Interfaces:
public final class EnumAdapter<T extends Object> extends ScaleCodecAdapter<T>
An adapter for Enum
-
-
Constructor Summary
Constructors Constructor Description EnumAdapter(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
-
EnumAdapter
EnumAdapter(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.
-
-
-
-