T - the original serializerpublic interface SerializerAdapter<T>
| Modifier and Type | Method and Description |
|---|---|
retrofit2.Converter.Factory |
converterFactory() |
<U> U |
deserialize(String value,
Type type)
Deserializes a string into a
U object using the current T. |
String |
serialize(Object object)
Serializes an object into a JSON string.
|
String |
serializeList(List<?> list,
CollectionFormat format)
Serializes a list into a string with the delimiter specified with the
Swagger collection format joining each individual serialized items in
the list.
|
T |
serializer() |
String |
serializeRaw(Object object)
Serializes an object into a raw string.
|
T serializer()
retrofit2.Converter.Factory converterFactory()
String serialize(Object object) throws IOException
object - the object to serialize.IOException - exception from serialization.String serializeRaw(Object object)
object - the object to serialize.String serializeList(List<?> list, CollectionFormat format)
list - the list to serialize.format - the Swagger collection format.<U> U deserialize(String value, Type type) throws IOException
U object using the current T.U - the type of the deserialized object.value - the string value to deserialize.type - the type to deserialize.IOException - exception in deserializationCopyright © 2019. All rights reserved.