Constructor and Description |
---|
InstantAdapter() |
Modifier and Type | Method and Description |
---|---|
Instant |
deserialize(com.google.gson.JsonElement json,
Type typeOfT,
com.google.gson.JsonDeserializationContext context) |
com.google.gson.JsonElement |
serialize(Instant src,
Type typeOfSrc,
com.google.gson.JsonSerializationContext context) |
public com.google.gson.JsonElement serialize(Instant src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
serialize
in interface com.google.gson.JsonSerializer<Instant>
public Instant 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<Instant>
com.google.gson.JsonParseException
Copyright © 2014–2015. All rights reserved.