Class PointTypeAdapter
java.lang.Object
com.redis.om.spring.serialization.gson.PointTypeAdapter
- All Implemented Interfaces:
com.google.gson.JsonDeserializer<org.springframework.data.geo.Point>,com.google.gson.JsonSerializer<org.springframework.data.geo.Point>
public class PointTypeAdapter
extends Object
implements com.google.gson.JsonSerializer<org.springframework.data.geo.Point>, com.google.gson.JsonDeserializer<org.springframework.data.geo.Point>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.geo.Pointdeserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) static PointTypeAdaptercom.google.gson.JsonElementserialize(org.springframework.data.geo.Point src, Type typeOfSrc, com.google.gson.JsonSerializationContext context)
-
Constructor Details
-
PointTypeAdapter
public PointTypeAdapter()
-
-
Method Details
-
serialize
public com.google.gson.JsonElement serialize(org.springframework.data.geo.Point src, Type typeOfSrc, com.google.gson.JsonSerializationContext context) - Specified by:
serializein interfacecom.google.gson.JsonSerializer<org.springframework.data.geo.Point>
-
deserialize
public org.springframework.data.geo.Point deserialize(com.google.gson.JsonElement json, Type typeOfT, com.google.gson.JsonDeserializationContext context) throws com.google.gson.JsonParseException - Specified by:
deserializein interfacecom.google.gson.JsonDeserializer<org.springframework.data.geo.Point>- Throws:
com.google.gson.JsonParseException
-
getInstance
-