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, int length)byte[]encode(Instant 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
-
InstantBinaryDtoFieldCodec
public InstantBinaryDtoFieldCodec()
-
-
Method Details
-
isFixedLength
public boolean isFixedLength()- Overrides:
isFixedLengthin classBinaryDtoBaseFieldCodec<Instant>
-
fixedLength
public int fixedLength()- Overrides:
fixedLengthin classBinaryDtoBaseFieldCodec<Instant>
-
supportsComparableCodec
public boolean supportsComparableCodec()Description copied from class:BinaryDtoBaseFieldCodecOverride with true if the codec is suitable for comparable encoding.- Specified by:
supportsComparableCodecin classBinaryDtoBaseFieldCodec<Instant>
-
encode
- Specified by:
encodein classBinaryDtoBaseFieldCodec<Instant>
-
decode
- Specified by:
decodein classBinaryDtoBaseFieldCodec<Instant>
-
compareAsIfEncoded
Description copied from class:BinaryDtoBaseFieldCodecOverride this with optimized implementations that avoid encoding.- Overrides:
compareAsIfEncodedin classBinaryDtoBaseFieldCodec<Instant>
-