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