Package com.massifmaps.geometry
Class VectorTileFeatureBuilder
java.lang.Object
com.massifmaps.geometry.FeatureBuilder
com.massifmaps.geometry.VectorTileFeatureBuilder
A vector tile feature consisting of id, layer, geometry and properties.
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a VectorTileFeatureBuilder with empty state. -
Method Summary
Modifier and TypeMethodDescriptionBuilds a new vector tile feature from the state.booleanChecks if this object is equal to the specified object.longgetId()Returns the id of the builder.Returns the layer name of the builder.Returns the map tile of the builder.inthashCode()Returns the hash value of this object.voidsetId(long id) Sets the id of the builder.voidsetLayerName(String layerName) Sets the layer name of the builder.voidsetMapTile(MapTile mapTile) Sets the map tile of the builder.Methods inherited from class com.massifmaps.geometry.FeatureBuilder
buildFeature, getGeometry, getPropertyValue, setGeometry, setPropertyValue
-
Constructor Details
-
VectorTileFeatureBuilder
public VectorTileFeatureBuilder()Constructs a VectorTileFeatureBuilder with empty state.
-
-
Method Details
-
equals
Checks if this object is equal to the specified object.- Overrides:
equalsin classFeatureBuilder- Parameters:
obj- The reference object.- Returns:
- True when objects are equal, false otherwise.
-
hashCode
public int hashCode()Returns the hash value of this object.- Overrides:
hashCodein classFeatureBuilder- Returns:
- The hash value of this object.
-
getId
public long getId()Returns the id of the builder.- Returns:
- The id of the builder.
-
setId
public void setId(long id) Sets the id of the builder.- Parameters:
id- The id of the builder.
-
getMapTile
Returns the map tile of the builder.- Returns:
- The map tile of the builder.
-
setMapTile
Sets the map tile of the builder.- Parameters:
mapTile- The map tile of the builder.
-
getLayerName
Returns the layer name of the builder.- Returns:
- The layer name of the builder.
-
setLayerName
Sets the layer name of the builder.- Parameters:
layerName- The layer name of the builder.
-
buildVectorTileFeature
Builds a new vector tile feature from the state.- Returns:
- A new vector tile feature based on the builder state. Can be null if the geometry is not specified.
-