Class GeoJsonPointImpl

java.lang.Object
com.commercetools.api.models.common.GeoJsonPointImpl
All Implemented Interfaces:
GeoJson, GeoJsonPoint, io.vrap.rmf.base.client.ModelBase

public class GeoJsonPointImpl extends Object implements GeoJsonPoint, io.vrap.rmf.base.client.ModelBase
GeoJsonPoint
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.vrap.rmf.base.client.ModelBase

    io.vrap.rmf.base.client.ModelBase.FilteredRecursiveToStringStyle
  • Field Summary

    Fields inherited from interface com.commercetools.api.models.common.GeoJsonPoint

    POINT
  • Constructor Summary

    Constructors
    Constructor
    Description
    create empty instance
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    Longitude (stored on index [0]) and latitude (stored on index [1]) of the Point.
     
    int
     
    void
    setCoordinates(Double... coordinates)
    Longitude (stored on index [0]) and latitude (stored on index [1]) of the Point.
    void
    setCoordinates(List<Double> coordinates)
    Longitude (stored on index [0]) and latitude (stored on index [1]) of the Point.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.commercetools.api.models.common.GeoJson

    withGeoJson

    Methods inherited from interface com.commercetools.api.models.common.GeoJsonPoint

    withGeoJsonPoint

    Methods inherited from interface io.vrap.rmf.base.client.ModelBase

    reflectionString, reflectionString
  • Constructor Details

    • GeoJsonPointImpl

      public GeoJsonPointImpl()
      create empty instance
  • Method Details

    • getType

      public String getType()
      Specified by:
      getType in interface GeoJson
      Returns:
      type
    • getCoordinates

      public List<Double> getCoordinates()

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

      Specified by:
      getCoordinates in interface GeoJsonPoint
      Returns:
      coordinates
    • setCoordinates

      public void setCoordinates(Double... coordinates)
      Description copied from interface: GeoJsonPoint

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

      Specified by:
      setCoordinates in interface GeoJsonPoint
      Parameters:
      coordinates - values to be set
    • setCoordinates

      public void setCoordinates(List<Double> coordinates)
      Description copied from interface: GeoJsonPoint

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

      Specified by:
      setCoordinates in interface GeoJsonPoint
      Parameters:
      coordinates - values to be set
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object