Class NestedBinaryDtoFieldCodec<T extends BaseBinaryDto<T>>
java.lang.Object
io.datarouter.bytes.binarydto.fieldcodec.BinaryDtoBaseFieldCodec<T>
io.datarouter.bytes.binarydto.fieldcodec.other.NestedBinaryDtoFieldCodec<T>
public class NestedBinaryDtoFieldCodec<T extends BaseBinaryDto<T>> extends BinaryDtoBaseFieldCodec<T>
-
Constructor Summary
Constructors Constructor Description NestedBinaryDtoFieldCodec(Class<T> dtoClass) -
Method Summary
Modifier and Type Method Description Tdecode(byte[] bytes, int offset, int length)byte[]encode(T value)booleansupportsComparableCodec()Override with true if the codec is suitable for comparable encoding.Methods inherited from class io.datarouter.bytes.binarydto.fieldcodec.BinaryDtoBaseFieldCodec
compareAsIfEncoded, decode, fixedLength, isFixedLength, isVariableLength
-
Constructor Details
-
NestedBinaryDtoFieldCodec
-
-
Method Details
-
supportsComparableCodec
public boolean supportsComparableCodec()Description copied from class:BinaryDtoBaseFieldCodecOverride with true if the codec is suitable for comparable encoding.- Specified by:
supportsComparableCodecin classBinaryDtoBaseFieldCodec<T extends BaseBinaryDto<T>>
-
encode
- Specified by:
encodein classBinaryDtoBaseFieldCodec<T extends BaseBinaryDto<T>>
-
decode
- Specified by:
decodein classBinaryDtoBaseFieldCodec<T extends BaseBinaryDto<T>>
-