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