public class TimestampTypeAdapter extends Object implements com.google.gson.JsonSerializer<Date>, com.google.gson.JsonDeserializer<Date>
Date
to the Long timestamp representationConstructor and Description |
---|
TimestampTypeAdapter() |
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 src,
Type typeOfSrc,
com.google.gson.JsonSerializationContext context) |
public Date deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
deserialize
in interface com.google.gson.JsonDeserializer<Date>
com.google.gson.JsonParseException
Copyright © 2015–2016. All rights reserved.