Package com.spun.util
Class JsonUtils.LocalDateTimeAdapter
java.lang.Object
com.google.gson.TypeAdapter<LocalDateTime>
com.spun.util.JsonUtils.LocalDateTimeAdapter
- Enclosing class:
- JsonUtils
public static class JsonUtils.LocalDateTimeAdapter
extends com.google.gson.TypeAdapter<LocalDateTime>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionread(com.google.gson.stream.JsonReader jsonReader) voidwrite(com.google.gson.stream.JsonWriter jsonWriter, LocalDateTime instant) Methods inherited from class com.google.gson.TypeAdapter
fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree
-
Constructor Details
-
LocalDateTimeAdapter
public LocalDateTimeAdapter()
-
-
Method Details
-
write
public void write(com.google.gson.stream.JsonWriter jsonWriter, LocalDateTime instant) throws IOException - Specified by:
writein classcom.google.gson.TypeAdapter<LocalDateTime>- Throws:
IOException
-
read
- Specified by:
readin classcom.google.gson.TypeAdapter<LocalDateTime>- Throws:
IOException
-