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 GeoLocationBuilder
builder()
builder factory method for GeoLocationstatic GeoLocationBuilder
builder
(GeoLocation template) create builder for GeoLocation instancestatic GeoLocation
deepCopy
(GeoLocation template) factory method to create a deep copy of GeoLocation@NotNull String
getType()
static GeoLocation
of()
factory methodstatic GeoLocation
of
(GeoLocation template) factory method to create a shallow copy GeoLocationvoid
setCoordinates
(Integer... coordinates) set coordinatesvoid
setCoordinates
(List<Integer> coordinates) set coordinatesvoid
set typestatic com.fasterxml.jackson.core.type.TypeReference<GeoLocation>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withGeoLocation
(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
-
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
-