public final class DefaultDateTypeAdapter<T extends Date> extends TypeAdapter<T>
DefaultDateTypeAdapter.DateType and then using its createAdapterFactory
methods.| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultDateTypeAdapter.DateType<T extends Date> |
| Modifier and Type | Method and Description |
|---|---|
T |
read(JsonReader in)
Reads one JSON value (an array, object, string, number, boolean or null)
and converts it to a Java object.
|
String |
toString() |
void |
write(JsonWriter out,
Date value)
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 value) throws IOException
TypeAdaptervalue.write in class TypeAdapter<T extends Date>value - the Java object to write. May be null.IOExceptionpublic T read(JsonReader in) throws IOException
TypeAdapterread in class TypeAdapter<T extends Date>IOExceptionCopyright © 2025. All rights reserved.