T - the type to be serializedpublic interface Serializer<T> extends TypeTranslator<T,byte[]>
| Modifier and Type | Method and Description |
|---|---|
T |
clone(T origin)
Creates a new value instance and copies the values from
origin to the new instance. |
Class<T> |
getType()
The type to be handled by this serializer.
|
fromtoT clone(T origin) throws IOException
origin to the new instance.
Use the SerializerRegistry to implement cloning of nested object values.origin - the object to cloneIOException - in case that cloning/serialization operations failCopyright © 2022. All rights reserved.