Interface GeoLocation
public interface GeoLocation
GeoLocation
Example to create an instance using the builder pattern
Example to create an instance using the builder pattern
GeoLocation geoLocation = GeoLocation.builder()
.type("{type}")
.plusCoordinates(coordinatesBuilder -> coordinatesBuilder)
.build()
-
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 coordinatesvoidset typestatic com.fasterxml.jackson.core.type.TypeReference<GeoLocation>gives a TypeReference for usage with Jackson DataBinddefault <T> TwithGeoLocation(Function<GeoLocation, T> helper) accessor map function
-
Method Details
-
getType
- Returns:
- type
-
getCoordinates
- Returns:
- coordinates
-
setType
set type- Parameters:
type- value to be set
-
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
-