public interface Codec<T>
CodecManager
used by a JRedis
implementation
(whether per instance or by other relations per JRedis provider implementation), and used
during the encoding of an semantic java type into byte[]
and back.Modifier and Type | Method and Description |
---|---|
T |
decode(byte[] bytes) |
byte[] |
encode(T object) |
boolean |
supports(Class<?> type) |
T decode(byte[] bytes)
bytes
- T
corresponding to the value of decoded bytes
byte[] encode(T object)
object
- boolean supports(Class<?> type)
type
- T
Copyright © 2009–2017. All rights reserved.