Interface GeoJsonPoint

All Superinterfaces:
GeoJson

public interface GeoJsonPoint extends GeoJson
GeoJsonPoint
Example to create an instance using the builder pattern

     GeoJsonPoint geoJsonPoint = GeoJsonPoint.builder()
             .plusCoordinates(coordinatesBuilder -> coordinatesBuilder)
             .build()
 
  • Field Details

  • Method Details

    • getCoordinates

      @NotNull @NotNull List<Double> getCoordinates()

      Longitude (stored on index [0]) and latitude (stored on index [1]) of the Point.

      Returns:
      coordinates
    • setCoordinates

      void setCoordinates(Double... coordinates)

      Longitude (stored on index [0]) and latitude (stored on index [1]) of the Point.

      Parameters:
      coordinates - values to be set
    • setCoordinates

      void setCoordinates(List<Double> coordinates)

      Longitude (stored on index [0]) and latitude (stored on index [1]) of the Point.

      Parameters:
      coordinates - values to be set
    • of

      static GeoJsonPoint of()
      factory method
      Returns:
      instance of GeoJsonPoint
    • of

      static GeoJsonPoint of(GeoJsonPoint template)
      factory method to create a shallow copy GeoJsonPoint
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • deepCopy

      @Nullable static GeoJsonPoint deepCopy(@Nullable GeoJsonPoint template)
      factory method to create a deep copy of GeoJsonPoint
      Parameters:
      template - instance to be copied
      Returns:
      copy instance
    • builder

      static GeoJsonPointBuilder builder()
      builder factory method for GeoJsonPoint
      Returns:
      builder
    • builder

      static GeoJsonPointBuilder builder(GeoJsonPoint template)
      create builder for GeoJsonPoint instance
      Parameters:
      template - instance with prefilled values for the builder
      Returns:
      builder
    • withGeoJsonPoint

      default <T> T withGeoJsonPoint(Function<GeoJsonPoint,T> helper)
      accessor map function
      Type Parameters:
      T - mapped type
      Parameters:
      helper - function to map the object
      Returns:
      mapped value
    • typeReference

      static com.fasterxml.jackson.core.type.TypeReference<GeoJsonPoint> typeReference()
      gives a TypeReference for usage with Jackson DataBind
      Returns:
      TypeReference