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