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)LengthAndValue<Integer>decodeWithLength(byte[] bytes, int offset)byte[]encode(Integer value)intfixedLength()booleanisFixedLength()Methods inherited from class io.datarouter.bytes.binarydto.fieldcodec.BinaryDtoBaseFieldCodec
decodeLength
-
Constructor Details
-
IntBinaryDtoFieldCodec
public IntBinaryDtoFieldCodec()
-
-
Method Details
-
isFixedLength
public boolean isFixedLength()- Overrides:
isFixedLengthin classBinaryDtoBaseFieldCodec<Integer>
-
fixedLength
public int fixedLength()- Overrides:
fixedLengthin classBinaryDtoBaseFieldCodec<Integer>
-
encode
- Specified by:
encodein classBinaryDtoBaseFieldCodec<Integer>
-
decode
- Overrides:
decodein classBinaryDtoBaseFieldCodec<Integer>
-
decodeWithLength
- Specified by:
decodeWithLengthin classBinaryDtoBaseFieldCodec<Integer>
-
compareAsIfEncoded
Description copied from class:BinaryDtoBaseFieldCodecOverride this with optimized implementations that avoid encoding.- Overrides:
compareAsIfEncodedin classBinaryDtoBaseFieldCodec<Integer>
-