Package com.suse.salt.netapi.parser
Class ZonedDateTimeISOAdapter
- java.lang.Object
-
- com.google.gson.TypeAdapter<ZonedDateTime>
-
- com.suse.salt.netapi.parser.ZonedDateTimeISOAdapter
-
public class ZonedDateTimeISOAdapter extends com.google.gson.TypeAdapter<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 ZonedDateTime
read(com.google.gson.stream.JsonReader jsonReader)
void
write(com.google.gson.stream.JsonWriter jsonWriter, ZonedDateTime date)
-
-
-
Method Detail
-
write
public void write(com.google.gson.stream.JsonWriter jsonWriter, ZonedDateTime date) throws IOException
- Specified by:
write
in classcom.google.gson.TypeAdapter<ZonedDateTime>
- Throws:
IOException
-
read
public ZonedDateTime read(com.google.gson.stream.JsonReader jsonReader) throws IOException
- Specified by:
read
in classcom.google.gson.TypeAdapter<ZonedDateTime>
- Throws:
IOException
-
-