Class ObjectArrayBinaryDtoFieldCodec<T>
java.lang.Object
io.datarouter.bytes.binarydto.fieldcodec.BinaryDtoBaseFieldCodec<T[]>
io.datarouter.bytes.binarydto.fieldcodec.other.ObjectArrayBinaryDtoFieldCodec<T>
public class ObjectArrayBinaryDtoFieldCodec<T> extends BinaryDtoBaseFieldCodec<T[]>
-
Constructor Summary
Constructors Constructor Description ObjectArrayBinaryDtoFieldCodec(Class<T> itemClass, BinaryDtoBaseFieldCodec<T> itemCodec, boolean isNullableItems) -
Method Summary
Modifier and Type Method Description T[]decode(byte[] bytes, int offset)LengthAndValue<T[]>decodeWithLength(byte[] bytes, int offset)byte[]encode(T[] value)Methods inherited from class io.datarouter.bytes.binarydto.fieldcodec.BinaryDtoBaseFieldCodec
compareAsIfEncoded, decodeLength, fixedLength, isFixedLength
-
Constructor Details
-
ObjectArrayBinaryDtoFieldCodec
public ObjectArrayBinaryDtoFieldCodec(Class<T> itemClass, BinaryDtoBaseFieldCodec<T> itemCodec, boolean isNullableItems)
-
-
Method Details
-
encode
- Specified by:
encodein classBinaryDtoBaseFieldCodec<T[]>
-
decode
- Overrides:
decodein classBinaryDtoBaseFieldCodec<T[]>
-
decodeWithLength
- Specified by:
decodeWithLengthin classBinaryDtoBaseFieldCodec<T[]>
-