Package org.eclipse.mosaic.lib.gson
Class UtmPointAdapter
java.lang.Object
org.eclipse.mosaic.lib.gson.UtmPointAdapter
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<UtmPoint>
,com.google.gson.JsonSerializer<UtmPoint>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(com.google.gson.JsonElement jsonElement, Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext) com.google.gson.JsonElement
serialize
(UtmPoint point, Type type, com.google.gson.JsonSerializationContext jsonSerializationContext)
-
Constructor Details
-
UtmPointAdapter
public UtmPointAdapter()
-
-
Method Details
-
deserialize
public UtmPoint deserialize(com.google.gson.JsonElement jsonElement, Type type, com.google.gson.JsonDeserializationContext jsonDeserializationContext) throws com.google.gson.JsonParseException - Specified by:
deserialize
in interfacecom.google.gson.JsonDeserializer<UtmPoint>
- Throws:
com.google.gson.JsonParseException
-
serialize
public com.google.gson.JsonElement serialize(UtmPoint point, Type type, com.google.gson.JsonSerializationContext jsonSerializationContext) - Specified by:
serialize
in interfacecom.google.gson.JsonSerializer<UtmPoint>
-