@Dependent public class DateGsonConverter extends Object implements com.google.gson.JsonDeserializer<Date>, com.google.gson.JsonSerializer<Date>
Date
using ISO8601 format.
This class must be in Dependent
to allow us to discover generic type.Constructor and Description |
---|
DateGsonConverter() |
Modifier and Type | Method and Description |
---|---|
Date |
deserialize(com.google.gson.JsonElement json,
Type typeOfT,
com.google.gson.JsonDeserializationContext context) |
com.google.gson.JsonElement |
serialize(Date date,
Type typeOfSrc,
com.google.gson.JsonSerializationContext context) |
Copyright © 2014 Caelum. All rights reserved.