public class LocalDateTimeTypeAdapter extends com.google.gson.TypeAdapter<LocalDateTime>
| 构造器和说明 |
|---|
LocalDateTimeTypeAdapter(String serializerDatePattern) |
| 限定符和类型 | 方法和说明 |
|---|---|
LocalDateTime |
read(com.google.gson.stream.JsonReader jsonReader) |
void |
write(com.google.gson.stream.JsonWriter jsonWriter,
LocalDateTime time) |
public LocalDateTimeTypeAdapter(String serializerDatePattern)
public void write(com.google.gson.stream.JsonWriter jsonWriter,
LocalDateTime time)
throws IOException
write 在类中 com.google.gson.TypeAdapter<LocalDateTime>IOExceptionpublic LocalDateTime read(com.google.gson.stream.JsonReader jsonReader) throws IOException
read 在类中 com.google.gson.TypeAdapter<LocalDateTime>IOExceptionCopyright © 2021. All rights reserved.