public interface TypeSerializer<T>
| Modifier and Type | Method and Description |
|---|---|
T |
deserialize(TypeToken<?> type,
ConfigurationNode value)
Deserialize an object required to be of a given type from the given configuration node
|
void |
serialize(TypeToken<?> type,
T obj,
ConfigurationNode value) |
T deserialize(TypeToken<?> type, ConfigurationNode value) throws ObjectMappingException
type - The type of return value requiredvalue - The node containing serialized dataObjectMappingException - If the presented data is somehow invalidvoid serialize(TypeToken<?> type, T obj, ConfigurationNode value) throws ObjectMappingException
ObjectMappingExceptionCopyright © 2014–2017. All rights reserved.