Class ZonedDateTimeConverter
- java.lang.Object
-
- com.oracle.coherence.io.json.genson.datetime.ZonedDateTimeConverter
-
- All Implemented Interfaces:
Converter<ZonedDateTime>,Deserializer<ZonedDateTime>,Serializer<ZonedDateTime>
public class ZonedDateTimeConverter extends Object
Converter for values of typeZonedDateTime.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tdeserialize(ObjectReader reader, Context ctx)voidserialize(T object, ObjectWriter writer, Context ctx)
-
-
-
Method Detail
-
serialize
public void serialize(T object, ObjectWriter writer, Context ctx)- Specified by:
serializein interfaceConverter<T extends TemporalAccessor>- Specified by:
serializein interfaceSerializer<T extends TemporalAccessor>- 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.
-
deserialize
public T deserialize(ObjectReader reader, Context ctx)
- Specified by:
deserializein interfaceConverter<T extends TemporalAccessor>- Specified by:
deserializein interfaceDeserializer<T extends TemporalAccessor>- Parameters:
reader- used to read data from.ctx- the current context.- Returns:
- an instance of T or a subclass of T.
-
-