Interface GeoLocation
- All Superinterfaces:
GeoJson
GeoLocation
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
GeoLocation geoLocation = GeoLocation.builder()
.plusCoordinates(coordinatesBuilder -> coordinatesBuilder)
.build()
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic GeoLocationBuilderbuilder()builder factory method for GeoLocationstatic GeoLocationBuilderbuilder(GeoLocation template) create builder for GeoLocation instancecopyDeep()static GeoLocationdeepCopy(GeoLocation template) factory method to create a deep copy of GeoLocation@NotNull StringgetType()static GeoLocationof()factory methodstatic GeoLocationof(GeoLocation template) factory method to create a shallow copy GeoLocationvoidsetCoordinates(Integer... coordinates) set coordinatesvoidsetCoordinates(List<Integer> coordinates) set coordinatesstatic com.fasterxml.jackson.core.type.TypeReference<GeoLocation>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithGeoLocation(Function<GeoLocation, T> helper) accessor map functionMethods inherited from interface com.commercetools.history.models.common.GeoJson
withGeoJson
-
Field Details
-
POINT
discriminator value for GeoLocation- See Also:
-
-
Method Details
-
getType
-
getCoordinates
- Returns:
- coordinates
-
setCoordinates
set coordinates- Parameters:
coordinates- values to be set
-
setCoordinates
set coordinates- Parameters:
coordinates- values to be set
-
of
factory method- Returns:
- instance of GeoLocation
-
of
factory method to create a shallow copy GeoLocation- Parameters:
template- instance to be copied- Returns:
- copy instance
-
copyDeep
GeoLocation copyDeep() -
deepCopy
factory method to create a deep copy of GeoLocation- Parameters:
template- instance to be copied- Returns:
- copy instance
-
builder
builder factory method for GeoLocation- Returns:
- builder
-
builder
create builder for GeoLocation instance- Parameters:
template- instance with prefilled values for the builder- Returns:
- builder
-
withGeoLocation
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
-