| Modifier and Type | Method | Description |
|---|---|---|
default <T> T |
clone(T t) |
Returns a deep clone of the given object by encoding it to the underlying store and decoding it again.
|
Codec |
codec() |
Returns the underlying codec.
|
default <T> T |
decode(java.lang.reflect.Type expected) |
Decodes an object graph of the expected type.
|
default void |
encode(java.lang.Object o) |
Encodes the given object graph.
|
Store |
store() |
Returns the underlying store.
|
Codec codec()
Store store()
default void encode(java.lang.Object o)
throws java.lang.Exception
Encoderdefault <T> T decode(java.lang.reflect.Type expected)
throws java.lang.Exception
Decoderdecode in interface DecoderT - the expected type of the decoded object.expected - the expected type of the decoded object graph, e.g. String.class.
This is just a hint and the implementation may ignore it.java.lang.Exceptiondefault <T> T clone(T t)
throws java.lang.Exception
java.lang.Exception