Class MapFLocToStringSetAdapter

java.lang.Object
dev.kitteh.factions.util.adapter.MapFLocToStringSetAdapter
All Implemented Interfaces:
com.google.gson.JsonDeserializer<Map<FLocation,Set<String>>>, com.google.gson.JsonSerializer<Map<FLocation,Set<String>>>

public class MapFLocToStringSetAdapter extends Object implements com.google.gson.JsonDeserializer<Map<FLocation,Set<String>>>, com.google.gson.JsonSerializer<Map<FLocation,Set<String>>>
  • Constructor Details

    • MapFLocToStringSetAdapter

      public MapFLocToStringSetAdapter()
  • Method Details

    • deserialize

      public Map<FLocation,Set<String>> 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<Map<FLocation,Set<String>>>
      Throws:
      com.google.gson.JsonParseException
    • serialize

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