Class LazyLocationAdapter

java.lang.Object
dev.kitteh.factions.util.adapter.LazyLocationAdapter
All Implemented Interfaces:
com.google.gson.JsonDeserializer<LazyLocation>, com.google.gson.JsonSerializer<LazyLocation>

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

    • LazyLocationAdapter

      public LazyLocationAdapter()
  • Method Details

    • deserialize

      public LazyLocation 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<LazyLocation>
      Throws:
      com.google.gson.JsonParseException
    • serialize

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