Class ZonedDateTimeISOAdapter
java.lang.Object
com.google.gson.TypeAdapter<ZonedDateTime>
com.suse.salt.netapi.parser.ZonedDateTimeISOAdapter
Adapter to convert an ISO formatted string to ZonedDateTime
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionread(com.google.gson.stream.JsonReader jsonReader) voidwrite(com.google.gson.stream.JsonWriter jsonWriter, ZonedDateTime date) Methods inherited from class com.google.gson.TypeAdapter
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
-
Constructor Details
-
ZonedDateTimeISOAdapter
public ZonedDateTimeISOAdapter()
-
-
Method Details
-
write
public void write(com.google.gson.stream.JsonWriter jsonWriter, ZonedDateTime date) throws IOException - Specified by:
writein classcom.google.gson.TypeAdapter<ZonedDateTime>- Throws:
IOException
-
read
- Specified by:
readin classcom.google.gson.TypeAdapter<ZonedDateTime>- Throws:
IOException
-