Package de.xima.fc.serialize.gson.type
Class UnixTimestampMillisGsonAdapter
- java.lang.Object
-
- com.google.gson.TypeAdapter<Date>
-
- de.xima.fc.serialize.gson.type.UnixTimestampMillisGsonAdapter
-
-
Field Summary
Fields Modifier and Type Field Description static UnixTimestampMillisGsonAdapter
INSTANCE
The immutable instance of this adapter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Date
read(com.google.gson.stream.JsonReader in)
void
write(com.google.gson.stream.JsonWriter out, Date value)
-
-
-
Field Detail
-
INSTANCE
public static final UnixTimestampMillisGsonAdapter INSTANCE
The immutable instance of this adapter.
-
-
Method Detail
-
write
public void write(com.google.gson.stream.JsonWriter out, Date value) throws IOException
- Specified by:
write
in classcom.google.gson.TypeAdapter<Date>
- Throws:
IOException
-
read
public Date read(com.google.gson.stream.JsonReader in) throws IOException
- Specified by:
read
in classcom.google.gson.TypeAdapter<Date>
- Throws:
IOException
-
-