| 构造器和说明 |
|---|
LocalDateTypeAdapter() |
LocalDateTypeAdapter(DateTimeFormatter formatter) |
| 限定符和类型 | 方法和说明 |
|---|---|
LocalDate |
read(com.google.gson.stream.JsonReader in) |
void |
setFormat(DateTimeFormatter dateFormat) |
void |
write(com.google.gson.stream.JsonWriter out,
LocalDate date) |
public LocalDateTypeAdapter()
public LocalDateTypeAdapter(DateTimeFormatter formatter)
public void setFormat(DateTimeFormatter dateFormat)
public void write(com.google.gson.stream.JsonWriter out,
LocalDate date)
throws IOException
write 在类中 com.google.gson.TypeAdapter<LocalDate>IOExceptionpublic LocalDate read(com.google.gson.stream.JsonReader in) throws IOException
read 在类中 com.google.gson.TypeAdapter<LocalDate>IOExceptionCopyright © 2024. All rights reserved.