public final class TimeTypeAdapter extends TypeAdapter<Time>
Modifier and Type | Field and Description |
---|---|
static TypeAdapterFactory |
FACTORY |
Constructor and Description |
---|
TimeTypeAdapter() |
Modifier and Type | Method and Description |
---|---|
Time |
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,
Time value)
Writes one JSON value (an array, object, string, number, boolean or null) for
value . |
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
public static final TypeAdapterFactory FACTORY
public Time read(JsonReader in) throws IOException
TypeAdapter
read
in class TypeAdapter<Time>
IOException
public void write(JsonWriter out, Time value) throws IOException
TypeAdapter
value
.write
in class TypeAdapter<Time>
value
- the Java object to write. May be null.IOException