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