类 ZonedDateTimeAdapter
java.lang.Object
com.google.gson.TypeAdapter<java.time.ZonedDateTime>
ai.nextbillion.maps.internal.ZonedDateTimeAdapter
public class ZonedDateTimeAdapter
extends com.google.gson.TypeAdapter<java.time.ZonedDateTime>
This class handles conversion from JSON to
ZonedDateTimes.
Please see TypeAdapter for more detail.
-
构造器概要
构造器 构造器 说明 ZonedDateTimeAdapter() -
方法概要
-
构造器详细资料
-
ZonedDateTimeAdapter
public ZonedDateTimeAdapter()
-
-
方法详细资料
-
read
public java.time.ZonedDateTime read(com.google.gson.stream.JsonReader reader) throws java.io.IOExceptionRead a Time object from a Directions API result and convert it to aZonedDateTime.We are expecting to receive something akin to the following:
{ "text" : "4:27pm", "time_zone" : "Australia/Sydney", "value" : 1406528829 }- 指定者:
read在类中com.google.gson.TypeAdapter<java.time.ZonedDateTime>- 抛出:
java.io.IOException
-
write
public void write(com.google.gson.stream.JsonWriter writer, java.time.ZonedDateTime value) throws java.io.IOExceptionThis method is not implemented.- 指定者:
write在类中com.google.gson.TypeAdapter<java.time.ZonedDateTime>- 抛出:
java.io.IOException
-