Interface GeoJson
- All Known Subinterfaces:
GeoJsonPoint
public interface GeoJson
GeoJSON Geometry represents a Geometry Object as defined in the GeoJSON standard.
Example to create a subtype instance using the builder pattern
GeoJson geoJson = GeoJson.pointBuilder()
plusCoordinates(coordinatesBuilder -> coordinatesBuilder)
.build()
-
Method Summary
Modifier and TypeMethodDescriptionstatic GeoJson
factory method to create a deep copy of GeoJson@NotNull String
getType()
static GeoJsonPointBuilder
builder for point subtypestatic com.fasterxml.jackson.core.type.TypeReference<GeoJson>
gives a TypeReference for usage with Jackson DataBinddefault <T> T
withGeoJson
(Function<GeoJson, T> helper) accessor map function
-
Method Details
-
getType
- Returns:
- type
-
deepCopy
factory method to create a deep copy of GeoJson- Parameters:
template
- instance to be copied- Returns:
- copy instance
-
pointBuilder
builder for point subtype- Returns:
- builder
-
withGeoJson
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
-