Class GsonUtility.HandleValueGsonTypeAdapter

  • All Implemented Interfaces:
    com.google.gson.JsonDeserializer<HandleValue>, com.google.gson.JsonSerializer<HandleValue>
    Enclosing class:
    GsonUtility

    public static class GsonUtility.HandleValueGsonTypeAdapter
    extends java.lang.Object
    implements com.google.gson.JsonSerializer<HandleValue>, com.google.gson.JsonDeserializer<HandleValue>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      HandleValue deserialize​(com.google.gson.JsonElement json, java.lang.reflect.Type type, com.google.gson.JsonDeserializationContext context)  
      com.google.gson.JsonElement serialize​(HandleValue value, java.lang.reflect.Type type, com.google.gson.JsonSerializationContext context)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • HandleValueGsonTypeAdapter

        public HandleValueGsonTypeAdapter()
    • Method Detail

      • serialize

        public com.google.gson.JsonElement serialize​(HandleValue value,
                                                     java.lang.reflect.Type type,
                                                     com.google.gson.JsonSerializationContext context)
        Specified by:
        serialize in interface com.google.gson.JsonSerializer<HandleValue>
      • deserialize

        public HandleValue deserialize​(com.google.gson.JsonElement json,
                                       java.lang.reflect.Type type,
                                       com.google.gson.JsonDeserializationContext context)
                                throws com.google.gson.JsonParseException
        Specified by:
        deserialize in interface com.google.gson.JsonDeserializer<HandleValue>
        Throws:
        com.google.gson.JsonParseException