Constructor and Description |
---|
LocalDateTypeAdapter() |
LocalDateTypeAdapter(DateTimeFormatter formatter) |
Modifier and Type | Method and Description |
---|---|
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
in class com.google.gson.TypeAdapter<LocalDate>
IOException
public LocalDate read(com.google.gson.stream.JsonReader in) throws IOException
read
in class com.google.gson.TypeAdapter<LocalDate>
IOException
Copyright © 2023. All rights reserved.