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