Class GeoJsonPointBuilder
java.lang.Object
com.commercetools.api.models.common.GeoJsonPointBuilder
- All Implemented Interfaces:
Builder<GeoJsonPoint>
GeoJsonPointBuilder
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()
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
builds GeoJsonPoint with checking for non-null required valuesbuilds GeoJsonPoint without checking for non-null required valuescoordinates
(Double... coordinates) Longitude (stored on index[0]
) and latitude (stored on index[1]
) of the Point.coordinates
(List<Double> coordinates) Longitude (stored on index[0]
) and latitude (stored on index[1]
) of the Point.Longitude (stored on index[0]
) and latitude (stored on index[1]
) of the Point.static GeoJsonPointBuilder
of()
factory method for an instance of GeoJsonPointBuilderstatic GeoJsonPointBuilder
of
(GeoJsonPoint template) create builder for GeoJsonPoint instanceplusCoordinates
(Double... coordinates) Longitude (stored on index[0]
) and latitude (stored on index[1]
) of the Point.
-
Constructor Details
-
GeoJsonPointBuilder
public GeoJsonPointBuilder()
-
-
Method Details
-
coordinates
Longitude (stored on index
[0]
) and latitude (stored on index[1]
) of the Point.- Parameters:
coordinates
- value to be set- Returns:
- Builder
-
coordinates
Longitude (stored on index
[0]
) and latitude (stored on index[1]
) of the Point.- Parameters:
coordinates
- value to be set- Returns:
- Builder
-
plusCoordinates
Longitude (stored on index
[0]
) and latitude (stored on index[1]
) of the Point.- Parameters:
coordinates
- value to be set- Returns:
- Builder
-
getCoordinates
Longitude (stored on index
[0]
) and latitude (stored on index[1]
) of the Point.- Returns:
- coordinates
-
build
builds GeoJsonPoint with checking for non-null required values- Specified by:
build
in interfaceBuilder<GeoJsonPoint>
- Returns:
- GeoJsonPoint
-
buildUnchecked
builds GeoJsonPoint without checking for non-null required values- Returns:
- GeoJsonPoint
-
of
factory method for an instance of GeoJsonPointBuilder- Returns:
- builder
-
of
create builder for GeoJsonPoint instance- Parameters:
template
- instance with prefilled values for the builder- Returns:
- builder
-