类 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.-
构造器概要
构造器 构造器 说明 InstantAdapter() -
方法概要
-
构造器详细资料
-
InstantAdapter
public InstantAdapter()
-
-
方法详细资料
-
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- 指定者:
read在类中com.google.gson.TypeAdapter<java.time.Instant>- 抛出:
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.- 指定者:
write在类中com.google.gson.TypeAdapter<java.time.Instant>- 抛出:
java.io.IOException
-