Class GeometryTypeAdapter

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      AbstractGeometryType deserialize​(com.google.gson.JsonElement json, java.lang.reflect.Type typeOfSrc, com.google.gson.JsonDeserializationContext context)  
      com.google.gson.JsonElement serialize​(AbstractGeometryType geometry, java.lang.reflect.Type typeOfSrc, 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

      • GeometryTypeAdapter

        public GeometryTypeAdapter()
    • Method Detail

      • serialize

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

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