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