| 限定符和类型 | 字段和说明 |
|---|---|
private DateFormat |
dateFormat |
| 构造器和说明 |
|---|
DateTypeAdapter() |
DateTypeAdapter(DateFormat dateFormat) |
private DateFormat dateFormat
public DateTypeAdapter()
public DateTypeAdapter(DateFormat dateFormat)
public void setFormat(DateFormat dateFormat)
public void write(com.google.gson.stream.JsonWriter out,
Date date)
throws IOException
write 在类中 com.google.gson.TypeAdapter<Date>IOExceptionpublic Date read(com.google.gson.stream.JsonReader in) throws IOException
read 在类中 com.google.gson.TypeAdapter<Date>IOExceptionCopyright © 2023. All rights reserved.