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 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:
      serialize in interface com.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:
      deserialize in interface com.google.gson.JsonDeserializer<org.springframework.data.geo.Point>
      Throws:
      com.google.gson.JsonParseException
    • getInstance

      public static PointTypeAdapter getInstance()