Class Codecs.IntegerCodec
- java.lang.Object
-
- io.quarkus.redis.datasource.codecs.Codecs.IntegerCodec
-
-
Field Summary
Fields Modifier and Type Field Description static Codecs.IntegerCodec
INSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canHandle(Type clazz)
Checks if the current codec can handle the serialization and deserialization of object from the given type.Integer
decode(byte[] item)
Decodes the given bytes to an object.byte[]
encode(Object item)
Encodes the given object.
-
-
-
Field Detail
-
INSTANCE
public static Codecs.IntegerCodec INSTANCE
-
-
Method Detail
-
canHandle
public boolean canHandle(Type clazz)
Description copied from interface:Codec
Checks if the current codec can handle the serialization and deserialization of object from the given type.
-
encode
public byte[] encode(Object item)
Description copied from interface:Codec
Encodes the given object. The type of the given object matches the type used to call theCodec.canHandle(Type)
method.
-
decode
public Integer decode(byte[] item)
Description copied from interface:Codec
Decodes the given bytes to an object. The codec must return an instance of the type used to call theCodec.canHandle(Type)
method.
-
-