Class Codecs.DoubleCodec
- java.lang.Object
-
- io.quarkus.redis.datasource.codecs.Codecs.DoubleCodec
-
-
Field Summary
Fields Modifier and Type Field Description static Codecs.DoubleCodecINSTANCE
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanHandle(Type clazz)Checks if the current codec can handle the serialization and deserialization of object from the given type.Doubledecode(byte[] item)Decodes the given bytes to an object.byte[]encode(Object item)Encodes the given object.
-
-
-
Field Detail
-
INSTANCE
public static Codecs.DoubleCodec INSTANCE
-
-
Method Detail
-
canHandle
public boolean canHandle(Type clazz)
Description copied from interface:CodecChecks 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:CodecEncodes the given object. The type of the given object matches the type used to call theCodec.canHandle(Type)method.
-
decode
public Double decode(byte[] item)
Description copied from interface:CodecDecodes the given bytes to an object. The codec must return an instance of the type used to call theCodec.canHandle(Type)method.
-
-