Package com.suse.salt.netapi.parser
Class ZonedDateTimeISOAdapter
- java.lang.Object
-
- com.google.gson.TypeAdapter<java.time.ZonedDateTime>
-
- com.suse.salt.netapi.parser.ZonedDateTimeISOAdapter
-
public class ZonedDateTimeISOAdapter extends com.google.gson.TypeAdapter<java.time.ZonedDateTime>Adapter to convert an ISO formatted string to ZonedDateTime
-
-
Constructor Summary
Constructors Constructor Description ZonedDateTimeISOAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.time.ZonedDateTimeread(com.google.gson.stream.JsonReader jsonReader)voidwrite(com.google.gson.stream.JsonWriter jsonWriter, java.time.ZonedDateTime date)
-
-
-
Method Detail
-
write
public void write(com.google.gson.stream.JsonWriter jsonWriter, java.time.ZonedDateTime date) throws java.io.IOException- Specified by:
writein classcom.google.gson.TypeAdapter<java.time.ZonedDateTime>- Throws:
java.io.IOException
-
read
public java.time.ZonedDateTime read(com.google.gson.stream.JsonReader jsonReader) throws java.io.IOException- Specified by:
readin classcom.google.gson.TypeAdapter<java.time.ZonedDateTime>- Throws:
java.io.IOException
-
-