Package com.segment.analytics.gson
Class ISO8601InstantAdapter
- java.lang.Object
-
- com.google.gson.TypeAdapter<Instant>
-
- com.segment.analytics.gson.ISO8601InstantAdapter
-
-
Constructor Summary
Constructors Constructor Description ISO8601InstantAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Instantdeserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context)Instantread(com.google.gson.stream.JsonReader in)com.google.gson.JsonElementserialize(Instant src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)voidwrite(com.google.gson.stream.JsonWriter out, Instant value)
-
-
-
Method Detail
-
serialize
public com.google.gson.JsonElement serialize(Instant src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
- Specified by:
serializein interfacecom.google.gson.JsonSerializer<Instant>
-
deserialize
public Instant deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
- Specified by:
deserializein interfacecom.google.gson.JsonDeserializer<Instant>- Throws:
com.google.gson.JsonParseException
-
write
public void write(com.google.gson.stream.JsonWriter out, Instant value) throws IOException- Specified by:
writein classcom.google.gson.TypeAdapter<Instant>- Throws:
IOException
-
read
public Instant read(com.google.gson.stream.JsonReader in) throws IOException
- Specified by:
readin classcom.google.gson.TypeAdapter<Instant>- Throws:
IOException
-
-