Class VectorTileFeatureBuilder

java.lang.Object
com.massifmaps.geometry.FeatureBuilder
com.massifmaps.geometry.VectorTileFeatureBuilder

public class VectorTileFeatureBuilder extends FeatureBuilder
A vector tile feature consisting of id, layer, geometry and properties.
  • Constructor Details

    • VectorTileFeatureBuilder

      public VectorTileFeatureBuilder()
      Constructs a VectorTileFeatureBuilder with empty state.
  • Method Details

    • equals

      public boolean equals(Object obj)
      Checks if this object is equal to the specified object.
      Overrides:
      equals in class FeatureBuilder
      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:
      hashCode in class FeatureBuilder
      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

      public MapTile getMapTile()
      Returns the map tile of the builder.
      Returns:
      The map tile of the builder.
    • setMapTile

      public void setMapTile(MapTile mapTile)
      Sets the map tile of the builder.
      Parameters:
      mapTile - The map tile of the builder.
    • getLayerName

      public String getLayerName()
      Returns the layer name of the builder.
      Returns:
      The layer name of the builder.
    • setLayerName

      public void setLayerName(String layerName)
      Sets the layer name of the builder.
      Parameters:
      layerName - The layer name of the builder.
    • buildVectorTileFeature

      public VectorTileFeature 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.