Package ai.nextbillion.maps.internal
Class InstantAdapter
java.lang.Object
com.google.gson.TypeAdapter<java.time.Instant>
ai.nextbillion.maps.internal.InstantAdapter
public class InstantAdapter
extends com.google.gson.TypeAdapter<java.time.Instant>
This class handles conversion from JSON to
Instant.-
Constructor Summary
Constructors Constructor Description InstantAdapter() -
Method Summary
-
Constructor Details
-
InstantAdapter
public InstantAdapter()
-
-
Method Details
-
read
public java.time.Instant read(com.google.gson.stream.JsonReader reader) throws java.io.IOExceptionRead a time from the Places API and convert to aInstant- Specified by:
readin classcom.google.gson.TypeAdapter<java.time.Instant>- Throws:
java.io.IOException
-
write
public void write(com.google.gson.stream.JsonWriter out, java.time.Instant value) throws java.io.IOExceptionThis method is not implemented.- Specified by:
writein classcom.google.gson.TypeAdapter<java.time.Instant>- Throws:
java.io.IOException
-