Class CalendarAdaptor

java.lang.Object
com.walkfares.calendar.adaptor.CalendarAdaptor
All Implemented Interfaces:
com.google.gson.JsonDeserializer<Calendar>, com.google.gson.JsonSerializer<Calendar>

public class CalendarAdaptor
extends Object
implements com.google.gson.JsonDeserializer<Calendar>, com.google.gson.JsonSerializer<Calendar>
  • Constructor Details

  • Method Details

    • deserialize

      public Calendar deserialize​(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
      Specified by:
      deserialize in interface com.google.gson.JsonDeserializer<Calendar>
      Throws:
      com.google.gson.JsonParseException
    • serialize

      public com.google.gson.JsonElement serialize​(Calendar src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
      Specified by:
      serialize in interface com.google.gson.JsonSerializer<Calendar>