-
- All Implemented Interfaces:
public final class ListAdapter<T extends Object> extends ScaleCodecAdapter<List<T>>
An adapter for List
-
-
Constructor Summary
Constructors Constructor Description ListAdapter(ScaleCodecAdapterProvider adapterResolver)
-
Method Summary
Modifier and Type Method Description List<T>read(ByteArrayReader reader, KType type, List<Annotation> annotations)Reads (decodes) data to specified type ByteArraywrite(List<T> obj, KType type, List<Annotation> annotations)Writes (encodes) the object -
-
Constructor Detail
-
ListAdapter
ListAdapter(ScaleCodecAdapterProvider adapterResolver)
-
-
Method Detail
-
read
List<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.
-
-
-
-