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 Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(com.google.gson.JsonElement jsonElement, Type typeOfT, com.google.gson.JsonDeserializationContext context) com.google.gson.JsonElement
serialize
(OrientedRectangle src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
-
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 interfacecom.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 interfacecom.google.gson.JsonSerializer<OrientedRectangle>
-