Class LocalTimeAdapter

java.lang.Object
com.google.gson.TypeAdapter<java.time.LocalTime>
ai.nextbillion.maps.internal.LocalTimeAdapter

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

    Constructors 
    Constructor Description
    LocalTimeAdapter()  
  • Method Summary

    Modifier and Type Method Description
    java.time.LocalTime read​(com.google.gson.stream.JsonReader reader)
    Read a time from the Places API and convert to a LocalTime
    void write​(com.google.gson.stream.JsonWriter out, java.time.LocalTime 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.LocalTime read​(com.google.gson.stream.JsonReader reader) throws java.io.IOException
      Read a time from the Places API and convert to a LocalTime
      Specified by:
      read in class com.google.gson.TypeAdapter<java.time.LocalTime>
      Throws:
      java.io.IOException
    • write

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