Class GsonUtility.InterfaceGsonTypeAdapter

java.lang.Object
net.handle.hdllib.GsonUtility.InterfaceGsonTypeAdapter
All Implemented Interfaces:
com.google.gson.JsonDeserializer<Interface>, com.google.gson.JsonSerializer<Interface>
Enclosing class:
GsonUtility

public static class GsonUtility.InterfaceGsonTypeAdapter extends Object implements com.google.gson.JsonSerializer<Interface>, com.google.gson.JsonDeserializer<Interface>
  • Constructor Details

    • InterfaceGsonTypeAdapter

      public InterfaceGsonTypeAdapter()
  • Method Details

    • serialize

      public com.google.gson.JsonElement serialize(Interface intf, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
      Specified by:
      serialize in interface com.google.gson.JsonSerializer<Interface>
    • deserialize

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