Interface GeoJsonPoint
- All Superinterfaces:
GeoJson
GeoJsonPoint
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
GeoJsonPoint geoJsonPoint = GeoJsonPoint.builder()
.plusCoordinates(coordinatesBuilder -> coordinatesBuilder)
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic GeoJsonPointBuilderbuilder()builder factory method for GeoJsonPointstatic GeoJsonPointBuilderbuilder(GeoJsonPoint template) create builder for GeoJsonPoint instancecopyDeep()static GeoJsonPointdeepCopy(GeoJsonPoint template) factory method to create a deep copy of GeoJsonPointLongitude (stored on index[0]) and latitude (stored on index[1]) of the Point.static GeoJsonPointof()factory methodstatic GeoJsonPointof(GeoJsonPoint template) factory method to create a shallow copy GeoJsonPointvoidsetCoordinates(Double... coordinates) Longitude (stored on index[0]) and latitude (stored on index[1]) of the Point.voidsetCoordinates(List<Double> coordinates) Longitude (stored on index[0]) and latitude (stored on index[1]) of the Point.static com.fasterxml.jackson.core.type.TypeReference<GeoJsonPoint>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithGeoJsonPoint(Function<GeoJsonPoint, T> helper) accessor map functionMethods inherited from interface com.commercetools.api.models.common.GeoJson
getType, withGeoJson
-
Field Details
-
POINT
discriminator value for GeoJsonPoint- See Also:
-
-
Method Details
-
getCoordinates
Longitude (stored on index
[0]) and latitude (stored on index[1]) of the Point.- Returns:
- coordinates
-
setCoordinates
Longitude (stored on index
[0]) and latitude (stored on index[1]) of the Point.- Parameters:
coordinates- values to be set
-
setCoordinates
Longitude (stored on index
[0]) and latitude (stored on index[1]) of the Point.- Parameters:
coordinates- values to be set
-
of
factory method- Returns:
- instance of GeoJsonPoint
-
of
factory method to create a shallow copy GeoJsonPoint- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
GeoJsonPoint copyDeep() -
deepCopy
factory method to create a deep copy of GeoJsonPoint- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GeoJsonPoint- Returns:
- builder
-
builder
create builder for GeoJsonPoint instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withGeoJsonPoint
accessor map function- Type Parameters:
T- mapped type- Parameters:
helper- function to map the object- Returns:
- mapped value
-
typeReference
gives a TypeReference for usage with Jackson DataBind- Returns:
- TypeReference
-