Class JSON.LocalDateTypeAdapter
- java.lang.Object
-
- com.google.gson.TypeAdapter<LocalDate>
-
- io.streamthoughts.azkarra.client.openapi.JSON.LocalDateTypeAdapter
-
-
Constructor Summary
Constructors Constructor Description LocalDateTypeAdapter()
LocalDateTypeAdapter(DateTimeFormatter formatter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalDate
read(com.google.gson.stream.JsonReader in)
void
setFormat(DateTimeFormatter dateFormat)
void
write(com.google.gson.stream.JsonWriter out, LocalDate date)
-
-
-
Constructor Detail
-
LocalDateTypeAdapter
public LocalDateTypeAdapter()
-
LocalDateTypeAdapter
public LocalDateTypeAdapter(DateTimeFormatter formatter)
-
-
Method Detail
-
setFormat
public void setFormat(DateTimeFormatter dateFormat)
-
write
public void write(com.google.gson.stream.JsonWriter out, LocalDate date) throws IOException
- Specified by:
write
in classcom.google.gson.TypeAdapter<LocalDate>
- Throws:
IOException
-
read
public LocalDate read(com.google.gson.stream.JsonReader in) throws IOException
- Specified by:
read
in classcom.google.gson.TypeAdapter<LocalDate>
- Throws:
IOException
-
-