-
- All Implemented Interfaces:
public final class BigIntegerAdapter extends ScaleCodecAdapter<BigInteger>
An adapter for BigInteger
-
-
Constructor Summary
Constructors Constructor Description BigIntegerAdapter(ScaleCodecAdapterProvider adapterResolver)
-
Method Summary
Modifier and Type Method Description BigIntegerread(ByteArrayReader reader, KType type, List<Annotation> annotations)Reads (decodes) data to specified type ByteArraywrite(BigInteger obj, KType type, List<Annotation> annotations)Writes (encodes) the object -
-
Constructor Detail
-
BigIntegerAdapter
BigIntegerAdapter(ScaleCodecAdapterProvider adapterResolver)
-
-
Method Detail
-
read
BigInteger 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.
-
write
ByteArray write(BigInteger obj, KType type, List<Annotation> annotations)
Writes (encodes) the object
- Parameters:
obj- a generiic object to needs to be writtentype- a required KTypeannotations- a list of annotations.
-
-
-
-