Class OrientedRectangleAdapter

java.lang.Object
com.kheops.jmap.metadata.mapcontext.OrientedRectangleAdapter
All Implemented Interfaces:
com.google.gson.JsonDeserializer<OrientedRectangle>, com.google.gson.JsonSerializer<OrientedRectangle>

public class OrientedRectangleAdapter extends Object implements com.google.gson.JsonSerializer<OrientedRectangle>, com.google.gson.JsonDeserializer<OrientedRectangle>
  • Constructor Details

    • OrientedRectangleAdapter

      public OrientedRectangleAdapter()
  • Method Details

    • deserialize

      public OrientedRectangle deserialize(com.google.gson.JsonElement jsonElement, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException
      Specified by:
      deserialize in interface com.google.gson.JsonDeserializer<OrientedRectangle>
      Throws:
      com.google.gson.JsonParseException
    • serialize

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