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