Class Range.TypeAdapter

java.lang.Object
com.pixelmonmod.pixelmon.api.util.Range.TypeAdapter
All Implemented Interfaces:
com.google.gson.JsonDeserializer<Range>, com.google.gson.JsonSerializer<Range>
Enclosing class:
Range

public static final class Range.TypeAdapter extends Object implements com.google.gson.JsonSerializer<Range>, com.google.gson.JsonDeserializer<Range>
  • Constructor Details

    • TypeAdapter

      public TypeAdapter()
  • Method Details

    • deserialize

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

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