Class DateAdapter
java.lang.Object
com.google.gson.TypeAdapter<Date>
com.suse.salt.netapi.parser.DateAdapter
TypeAdapter for date representation received from the API
(which represents it as a (floating) number of seconds since the Epoch).
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.google.gson.TypeAdapter
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
-
Constructor Details
-
DateAdapter
public DateAdapter()
-
-
Method Details
-
write
- Specified by:
writein classcom.google.gson.TypeAdapter<Date>- Throws:
IOException
-
read
- Specified by:
readin classcom.google.gson.TypeAdapter<Date>- Throws:
IOException
-