public interface Serialization
JsonSerialization
Modifier and Type | Method and Description |
---|---|
boolean |
canDeserialize(String parameterizedType)
Verify if the given parameterized type can be deserialized.
|
boolean |
canSerialize(String parameterizedType)
Verify if the given parameterized type can be serialized.
|
<T> T |
deserialize(String serializedObject,
String parameterizedType)
Deserializes the object to the type represented by
parameterizedType . |
<T> String |
serialize(T object,
String parameterizedType)
Serializes the object as a type represented by
parameterizedType . |
boolean canSerialize(String parameterizedType)
parameterizedType
- the parameterized type.true
if parameterizedType
can be serialized, otherwise false
.<T> String serialize(T object, String parameterizedType)
parameterizedType
.T
- the type of the object.object
- the object to serialized.parameterizedType
- the parameterized type of the object to serialize.boolean canDeserialize(String parameterizedType)
parameterizedType
- the parameterized type.true
if parameterizedType
can be deserialized, otherwise false
.<T> T deserialize(String serializedObject, String parameterizedType)
parameterizedType
.T
- the return type.serializedObject
- the String representing the serialized object.parameterizedType
- the parameterized type of the expected return type.T
.Copyright © 2010–2014 Arcbees. All rights reserved.