Class JsonTimeZoneAdapter

java.lang.Object
com.google.gson.TypeAdapter<java.time.Instant>
net.reyadeyat.nlp.json.JsonTimeZoneAdapter

public class JsonTimeZoneAdapter extends com.google.gson.TypeAdapter<java.time.Instant>
Since:
2023.01.01
Author:
Mohammad Nabil Mostafa code@reyadeyat.net
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    java.time.Instant
    read(com.google.gson.stream.JsonReader json_reader)
     
    void
    write(com.google.gson.stream.JsonWriter json_writer, java.time.Instant instant)
     

    Methods inherited from class com.google.gson.TypeAdapter

    fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JsonTimeZoneAdapter

      public JsonTimeZoneAdapter()
  • Method Details

    • read

      public java.time.Instant read(com.google.gson.stream.JsonReader json_reader) throws IOException
      Specified by:
      read in class com.google.gson.TypeAdapter<java.time.Instant>
      Throws:
      IOException
    • write

      public void write(com.google.gson.stream.JsonWriter json_writer, java.time.Instant instant) throws IOException
      Specified by:
      write in class com.google.gson.TypeAdapter<java.time.Instant>
      Throws:
      IOException