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.boolean[]decode(byte[] bytes, int offset, int length)byte[]encode(boolean[] value)booleansupportsComparableCodec()Override with true if the codec is suitable for comparable encoding.Methods inherited from class io.datarouter.bytes.binarydto.fieldcodec.BinaryDtoBaseFieldCodec
decode, fixedLength, isFixedLength, isVariableLength
-
Constructor Details
-
BooleanArrayBinaryDtoFieldCodec
public BooleanArrayBinaryDtoFieldCodec()
-
-
Method Details
-
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
public byte[] encode(boolean[] value)- Specified by:
encodein classBinaryDtoBaseFieldCodec<boolean[]>
-
decode
public boolean[] decode(byte[] bytes, int offset, int length)- Specified by:
decodein 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[]>
-