public class JSON.LocalDateTypeAdapter
extends com.google.gson.TypeAdapter<java.time.LocalDate>
| Constructor and Description |
|---|
LocalDateTypeAdapter() |
LocalDateTypeAdapter(java.time.format.DateTimeFormatter formatter) |
| Modifier and Type | Method and Description |
|---|---|
java.time.LocalDate |
read(com.google.gson.stream.JsonReader in) |
void |
setFormat(java.time.format.DateTimeFormatter dateFormat) |
void |
write(com.google.gson.stream.JsonWriter out,
java.time.LocalDate date) |
public LocalDateTypeAdapter()
public LocalDateTypeAdapter(java.time.format.DateTimeFormatter formatter)
public void setFormat(java.time.format.DateTimeFormatter dateFormat)
public void write(com.google.gson.stream.JsonWriter out,
java.time.LocalDate date)
throws java.io.IOException
write in class com.google.gson.TypeAdapter<java.time.LocalDate>java.io.IOExceptionpublic java.time.LocalDate read(com.google.gson.stream.JsonReader in)
throws java.io.IOException
read in class com.google.gson.TypeAdapter<java.time.LocalDate>java.io.IOException