Class InstantBinaryDtoFieldCodec
java.lang.Object
io.datarouter.bytes.binarydto.fieldcodec.BinaryDtoBaseFieldCodec<Instant>
io.datarouter.bytes.binarydto.fieldcodec.time.InstantBinaryDtoFieldCodec
public class InstantBinaryDtoFieldCodec extends BinaryDtoBaseFieldCodec<Instant>
-
Constructor Summary
Constructors Constructor Description InstantBinaryDtoFieldCodec() -
Method Summary
Modifier and Type Method Description intcompareAsIfEncoded(Instant left, Instant right)Override this with optimized implementations that avoid encoding.Instantdecode(byte[] bytes, int offset)LengthAndValue<Instant>decodeWithLength(byte[] bytes, int offset)byte[]encode(Instant value)intfixedLength()booleanisFixedLength()Methods inherited from class io.datarouter.bytes.binarydto.fieldcodec.BinaryDtoBaseFieldCodec
decodeLength
-
Constructor Details
-
InstantBinaryDtoFieldCodec
public InstantBinaryDtoFieldCodec()
-
-
Method Details
-
isFixedLength
public boolean isFixedLength()- Overrides:
isFixedLengthin classBinaryDtoBaseFieldCodec<Instant>
-
fixedLength
public int fixedLength()- Overrides:
fixedLengthin classBinaryDtoBaseFieldCodec<Instant>
-
encode
- Specified by:
encodein classBinaryDtoBaseFieldCodec<Instant>
-
decode
- Overrides:
decodein classBinaryDtoBaseFieldCodec<Instant>
-
decodeWithLength
- Specified by:
decodeWithLengthin classBinaryDtoBaseFieldCodec<Instant>
-
compareAsIfEncoded
Description copied from class:BinaryDtoBaseFieldCodecOverride this with optimized implementations that avoid encoding.- Overrides:
compareAsIfEncodedin classBinaryDtoBaseFieldCodec<Instant>
-