Class DefaultConverters.ComplexMapConverter<K,V>
- java.lang.Object
-
- com.oracle.coherence.io.json.genson.convert.DefaultConverters.ComplexMapConverter<K,V>
-
- All Implemented Interfaces:
Converter<Map<K,V>>,Deserializer<Map<K,V>>,Serializer<Map<K,V>>
- Enclosing class:
- DefaultConverters
@HandleClassMetadata public static class DefaultConverters.ComplexMapConverter<K,V> extends Object implements Converter<Map<K,V>>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<K,V>deserialize(ObjectReader reader, Context ctx)voidserialize(Map<K,V> object, ObjectWriter writer, Context ctx)
-
-
-
Method Detail
-
serialize
public void serialize(Map<K,V> object, ObjectWriter writer, Context ctx) throws Exception
- Specified by:
serializein interfaceConverter<K>- Specified by:
serializein interfaceSerializer<K>- Parameters:
object- we want to serialize. The object is of type T or a subclass (if this serializer has been registered for subclasses).writer- to use to write data to the output stream.ctx- the current context.- Throws:
JsonBindingExceptionJsonStreamExceptionException
-
deserialize
public Map<K,V> deserialize(ObjectReader reader, Context ctx) throws Exception
- Specified by:
deserializein interfaceConverter<K>- Specified by:
deserializein interfaceDeserializer<K>- Parameters:
reader- used to read data from.ctx- the current context.- Returns:
- an instance of T or a subclass of T.
- Throws:
JsonBindingExceptionJsonStreamExceptionException
-
-