public class Java8TimeAdapter<T extends java.time.temporal.TemporalAccessor>
extends com.google.gson.TypeAdapter<T>
| 构造器和说明 |
|---|
Java8TimeAdapter(java.time.format.DateTimeFormatter readFormatter,
java.time.format.DateTimeFormatter writeFormatter,
java.time.temporal.TemporalQuery<T> temporalQuery) |
Java8TimeAdapter(java.time.format.DateTimeFormatter dtf,
java.time.temporal.TemporalQuery<T> temporalQuery) |
public Java8TimeAdapter(java.time.format.DateTimeFormatter dtf,
java.time.temporal.TemporalQuery<T> temporalQuery)
public Java8TimeAdapter(java.time.format.DateTimeFormatter readFormatter,
java.time.format.DateTimeFormatter writeFormatter,
java.time.temporal.TemporalQuery<T> temporalQuery)
public void write(com.google.gson.stream.JsonWriter out,
T value)
throws IOException
write 在类中 com.google.gson.TypeAdapter<T extends java.time.temporal.TemporalAccessor>IOExceptionpublic T read(com.google.gson.stream.JsonReader in) throws IOException
read 在类中 com.google.gson.TypeAdapter<T extends java.time.temporal.TemporalAccessor>IOExceptionCopyright © 2017. All rights reserved.