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)LengthAndValue<Boolean>decodeWithLength(byte[] bytes, int offset)byte[]encode(Boolean value)intfixedLength()booleanisFixedLength()Methods inherited from class io.datarouter.bytes.binarydto.fieldcodec.BinaryDtoBaseFieldCodec
decodeLength
-
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>
-
encode
- Specified by:
encodein classBinaryDtoBaseFieldCodec<Boolean>
-
decode
- Overrides:
decodein classBinaryDtoBaseFieldCodec<Boolean>
-
decodeWithLength
- Specified by:
decodeWithLengthin classBinaryDtoBaseFieldCodec<Boolean>
-
compareAsIfEncoded
Description copied from class:BinaryDtoBaseFieldCodecOverride this with optimized implementations that avoid encoding.- Overrides:
compareAsIfEncodedin classBinaryDtoBaseFieldCodec<Boolean>
-