Class CharArrayBinaryDtoFieldCodec
java.lang.Object
io.datarouter.bytes.binarydto.fieldcodec.BinaryDtoBaseFieldCodec<char[]>
io.datarouter.bytes.binarydto.fieldcodec.array.CharArrayBinaryDtoFieldCodec
public class CharArrayBinaryDtoFieldCodec extends BinaryDtoBaseFieldCodec<char[]>
-
Constructor Summary
Constructors Constructor Description CharArrayBinaryDtoFieldCodec() -
Method Summary
Modifier and Type Method Description intcompareAsIfEncoded(char[] left, char[] right)Override this with optimized implementations that avoid encoding.char[]decode(byte[] bytes, int offset, int length)byte[]encode(char[] 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
-
CharArrayBinaryDtoFieldCodec
public CharArrayBinaryDtoFieldCodec()
-
-
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<char[]>
-
encode
public byte[] encode(char[] value)- Specified by:
encodein classBinaryDtoBaseFieldCodec<char[]>
-
decode
public char[] decode(byte[] bytes, int offset, int length)- Specified by:
decodein classBinaryDtoBaseFieldCodec<char[]>
-
compareAsIfEncoded
public int compareAsIfEncoded(char[] left, char[] right)Description copied from class:BinaryDtoBaseFieldCodecOverride this with optimized implementations that avoid encoding.- Overrides:
compareAsIfEncodedin classBinaryDtoBaseFieldCodec<char[]>
-