Class ShortBinaryDtoFieldCodec
java.lang.Object
io.datarouter.bytes.binarydto.fieldcodec.BinaryDtoBaseFieldCodec<Short>
io.datarouter.bytes.binarydto.fieldcodec.primitive.ShortBinaryDtoFieldCodec
public class ShortBinaryDtoFieldCodec extends BinaryDtoBaseFieldCodec<Short>
-
Constructor Summary
Constructors Constructor Description ShortBinaryDtoFieldCodec() -
Method Summary
Modifier and Type Method Description intcompareAsIfEncoded(Short left, Short right)Override this with optimized implementations that avoid encoding.Shortdecode(byte[] bytes, int offset, int length)byte[]encode(Short 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
-
Constructor Details
-
ShortBinaryDtoFieldCodec
public ShortBinaryDtoFieldCodec()
-
-
Method Details
-
isFixedLength
public boolean isFixedLength()- Overrides:
isFixedLengthin classBinaryDtoBaseFieldCodec<Short>
-
fixedLength
public int fixedLength()- Overrides:
fixedLengthin classBinaryDtoBaseFieldCodec<Short>
-
supportsComparableCodec
public boolean supportsComparableCodec()Description copied from class:BinaryDtoBaseFieldCodecOverride with true if the codec is suitable for comparable encoding.- Specified by:
supportsComparableCodecin classBinaryDtoBaseFieldCodec<Short>
-
encode
- Specified by:
encodein classBinaryDtoBaseFieldCodec<Short>
-
decode
- Specified by:
decodein classBinaryDtoBaseFieldCodec<Short>
-
compareAsIfEncoded
Description copied from class:BinaryDtoBaseFieldCodecOverride this with optimized implementations that avoid encoding.- Overrides:
compareAsIfEncodedin classBinaryDtoBaseFieldCodec<Short>
-