Package com.influxdb.client
Class JSON.OffsetDateTimeTypeAdapter
java.lang.Object
com.google.gson.TypeAdapter<OffsetDateTime>
com.influxdb.client.JSON.OffsetDateTimeTypeAdapter
- Enclosing class:
JSON
public static class JSON.OffsetDateTimeTypeAdapter
extends com.google.gson.TypeAdapter<OffsetDateTime>
Gson TypeAdapter for JSR310 OffsetDateTime type
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionread
(com.google.gson.stream.JsonReader in) void
setFormat
(DateTimeFormatter dateFormat) void
write
(com.google.gson.stream.JsonWriter out, OffsetDateTime date) Methods inherited from class com.google.gson.TypeAdapter
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
-
Constructor Details
-
OffsetDateTimeTypeAdapter
public OffsetDateTimeTypeAdapter() -
OffsetDateTimeTypeAdapter
-
-
Method Details
-
setFormat
-
write
- Specified by:
write
in classcom.google.gson.TypeAdapter<OffsetDateTime>
- Throws:
IOException
-
read
- Specified by:
read
in classcom.google.gson.TypeAdapter<OffsetDateTime>
- Throws:
IOException
-