Class ByteBinaryDtoFieldCodec
java.lang.Object
io.datarouter.bytes.binarydto.fieldcodec.BinaryDtoBaseFieldCodec<Byte>
io.datarouter.bytes.binarydto.fieldcodec.primitive.ByteBinaryDtoFieldCodec
public class ByteBinaryDtoFieldCodec extends BinaryDtoBaseFieldCodec<Byte>
-
Field Summary
Fields Modifier and Type Field Description static intLENGTH -
Constructor Summary
Constructors Constructor Description ByteBinaryDtoFieldCodec() -
Method Summary
Modifier and Type Method Description intcompareAsIfEncoded(Byte left, Byte right)Override this with optimized implementations that avoid encoding.Bytedecode(byte[] bytes, int offset, int length)byte[]encode(Byte value)intfixedLength()booleanisFixedLength()booleansupportsComparableCodec()Override with true if the codec is suitable for comparable encoding.Methods inherited from class io.datarouter.bytes.binarydto.fieldcodec.BinaryDtoBaseFieldCodec
decode, isVariableLength
-
Field Details
-
LENGTH
public static final int LENGTH
-
-
Constructor Details
-
ByteBinaryDtoFieldCodec
public ByteBinaryDtoFieldCodec()
-
-
Method Details
-
isFixedLength
public boolean isFixedLength()- Overrides:
isFixedLengthin classBinaryDtoBaseFieldCodec<Byte>
-
fixedLength
public int fixedLength()- Overrides:
fixedLengthin classBinaryDtoBaseFieldCodec<Byte>
-
supportsComparableCodec
public boolean supportsComparableCodec()Description copied from class:BinaryDtoBaseFieldCodecOverride with true if the codec is suitable for comparable encoding.- Specified by:
supportsComparableCodecin classBinaryDtoBaseFieldCodec<Byte>
-
encode
- Specified by:
encodein classBinaryDtoBaseFieldCodec<Byte>
-
decode
- Specified by:
decodein classBinaryDtoBaseFieldCodec<Byte>
-
compareAsIfEncoded
Description copied from class:BinaryDtoBaseFieldCodecOverride this with optimized implementations that avoid encoding.- Overrides:
compareAsIfEncodedin classBinaryDtoBaseFieldCodec<Byte>
-