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