public final class UtcDateTypeAdapter extends TypeAdapter<Date>
| Constructor and Description |
|---|
UtcDateTypeAdapter() |
| Modifier and Type | Method and Description |
|---|---|
Date |
read(JsonReader in)
Reads one JSON value (an array, object, string, number, boolean or null)
and converts it to a Java object.
|
void |
write(JsonWriter out,
Date date)
Writes one JSON value (an array, object, string, number, boolean or null)
for
value. |
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTreepublic void write(JsonWriter out, Date date) throws IOException
TypeAdaptervalue.write in class TypeAdapter<Date>date - the Java object to write. May be null.IOExceptionpublic Date read(JsonReader in) throws IOException
TypeAdapterread in class TypeAdapter<Date>IOExceptionCopyright © 2025. All rights reserved.