Class BooleanBinaryDtoFieldCodec
java.lang.Object
io.datarouter.bytes.binarydto.fieldcodec.BinaryDtoBaseFieldCodec<Boolean>
io.datarouter.bytes.binarydto.fieldcodec.primitive.BooleanBinaryDtoFieldCodec
public class BooleanBinaryDtoFieldCodec extends BinaryDtoBaseFieldCodec<Boolean>
-
Field Summary
Fields Modifier and Type Field Description static intLENGTH -
Constructor Summary
Constructors Constructor Description BooleanBinaryDtoFieldCodec() -
Method Summary
Modifier and Type Method Description intcompareAsIfEncoded(Boolean left, Boolean right)Override this with optimized implementations that avoid encoding.Booleandecode(byte[] bytes, int offset, int length)byte[]encode(Boolean 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
-
Field Details
-
LENGTH
public static final int LENGTH
-
-
Constructor Details
-
BooleanBinaryDtoFieldCodec
public BooleanBinaryDtoFieldCodec()
-
-
Method Details
-
isFixedLength
public boolean isFixedLength()- Overrides:
isFixedLengthin classBinaryDtoBaseFieldCodec<Boolean>
-
fixedLength
public int fixedLength()- Overrides:
fixedLengthin classBinaryDtoBaseFieldCodec<Boolean>
-
supportsComparableCodec
public boolean supportsComparableCodec()Description copied from class:BinaryDtoBaseFieldCodecOverride with true if the codec is suitable for comparable encoding.- Specified by:
supportsComparableCodecin classBinaryDtoBaseFieldCodec<Boolean>
-
encode
- Specified by:
encodein classBinaryDtoBaseFieldCodec<Boolean>
-
decode
- Specified by:
decodein classBinaryDtoBaseFieldCodec<Boolean>
-
compareAsIfEncoded
Description copied from class:BinaryDtoBaseFieldCodecOverride this with optimized implementations that avoid encoding.- Overrides:
compareAsIfEncodedin classBinaryDtoBaseFieldCodec<Boolean>
-