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
-
Method Summary
Modifier and TypeMethodDescriptionstatic GeoJsonPointBuilder
builder()
builder factory method for GeoJsonPointstatic GeoJsonPointBuilder
builder
(GeoJsonPoint template) create builder for GeoJsonPoint instancestatic GeoJsonPoint
deepCopy
(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 GeoJsonPoint
of()
factory methodstatic GeoJsonPoint
of
(GeoJsonPoint template) factory method to create a shallow copy GeoJsonPointvoid
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.static com.fasterxml.jackson.core.type.TypeReference<GeoJsonPoint>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withGeoJsonPoint
(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
-
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
-