public class DateTypeAdapter
extends com.google.gson.TypeAdapter<java.util.Date>
Date instances
that should interpretted as OpenAPI "date" values.JsonAdapter annotation
on a field of type Date.| Modifier and Type | Field and Description |
|---|---|
static com.google.gson.TypeAdapterFactory |
FACTORY |
| Constructor and Description |
|---|
DateTypeAdapter() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Date |
read(com.google.gson.stream.JsonReader in) |
void |
write(com.google.gson.stream.JsonWriter out,
java.util.Date value) |
public java.util.Date read(com.google.gson.stream.JsonReader in)
throws java.io.IOException
read in class com.google.gson.TypeAdapter<java.util.Date>java.io.IOExceptionpublic void write(com.google.gson.stream.JsonWriter out,
java.util.Date value)
throws java.io.IOException
write in class com.google.gson.TypeAdapter<java.util.Date>java.io.IOExceptionCopyright © 2022 IBM Cloud Developer Experience. All rights reserved.