Class InstantAdapter

java.lang.Object
com.google.gson.TypeAdapter<java.time.Instant>
ai.nextbillion.maps.internal.InstantAdapter

public class InstantAdapter
extends com.google.gson.TypeAdapter<java.time.Instant>
This class handles conversion from JSON to Instant.
  • Constructor Summary

    Constructors 
    Constructor Description
    InstantAdapter()  
  • Method Summary

    Modifier and Type Method Description
    java.time.Instant read​(com.google.gson.stream.JsonReader reader)
    Read a time from the Places API and convert to a Instant
    void write​(com.google.gson.stream.JsonWriter out, java.time.Instant value)
    This method is not implemented.

    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

  • Method Details

    • read

      public java.time.Instant read​(com.google.gson.stream.JsonReader reader) throws java.io.IOException
      Read a time from the Places API and convert to a Instant
      Specified by:
      read in class com.google.gson.TypeAdapter<java.time.Instant>
      Throws:
      java.io.IOException
    • write

      public void write​(com.google.gson.stream.JsonWriter out, java.time.Instant value) throws java.io.IOException
      This method is not implemented.
      Specified by:
      write in class com.google.gson.TypeAdapter<java.time.Instant>
      Throws:
      java.io.IOException