Class GeometryAdapterFactory

java.lang.Object
com.mapbox.geojson.GeometryAdapterFactory
All Implemented Interfaces:
com.google.gson.TypeAdapterFactory

public abstract class GeometryAdapterFactory extends Object implements com.google.gson.TypeAdapterFactory
A Geometry type adapter factory for convenience for serialization/deserialization.
Since:
4.6.0
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static com.google.gson.TypeAdapterFactory
    Create a new instance of Geometry type adapter factory, this is passed into the Gson Builder.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.google.gson.TypeAdapterFactory

    create
  • Constructor Details

    • GeometryAdapterFactory

      public GeometryAdapterFactory()
  • Method Details

    • create

      public static com.google.gson.TypeAdapterFactory create()
      Create a new instance of Geometry type adapter factory, this is passed into the Gson Builder.
      Returns:
      a new GSON TypeAdapterFactory
      Since:
      4.4.0