public class

VectorTileFeatureBuilder

extends FeatureBuilder
java.lang.Object
   ↳ com.carto.geometry.FeatureBuilder
     ↳ com.carto.geometry.VectorTileFeatureBuilder

Class Overview

A vector tile feature consisting of id, layer, geometry and properties.

Summary

Public Constructors
VectorTileFeatureBuilder()
Constructs a VectorTileFeatureBuilder with empty state.
Public Methods
VectorTileFeature buildVectorTileFeature()
Builds a new vector tile feature from the state.
synchronized void delete()
boolean equals(Object obj)
Checks if this object is equal to the specified object.
long getId()
Returns the id of the builder.
String getLayerName()
Returns the layer name of the builder.
MapTile getMapTile()
Returns the map tile of the builder.
int hashCode()
Returns the hash value of this object.
void setId(long id)
Sets the id of the builder.
void setLayerName(String layerName)
Sets the layer name of the builder.
void setMapTile(MapTile mapTile)
Sets the map tile of the builder.
[Expand]
Inherited Methods
From class com.carto.geometry.FeatureBuilder
From class java.lang.Object

Public Constructors

public VectorTileFeatureBuilder ()

Constructs a VectorTileFeatureBuilder with empty state.

Public Methods

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.

public synchronized void delete ()

public boolean equals (Object obj)

Checks if this object is equal to the specified object.

Parameters
obj The reference object.
Returns
  • True when objects are equal, false otherwise.

public long getId ()

Returns the id of the builder.

Returns
  • The id of the builder.

public String getLayerName ()

Returns the layer name of the builder.

Returns
  • The layer name of the builder.

public MapTile getMapTile ()

Returns the map tile of the builder.

Returns
  • The map tile of the builder.

public int hashCode ()

Returns the hash value of this object.

Returns
  • The hash value of this object.

public void setId (long id)

Sets the id of the builder.

Parameters
id The id of the builder.

public void setLayerName (String layerName)

Sets the layer name of the builder.

Parameters
layerName The layer name of the builder.

public void setMapTile (MapTile mapTile)

Sets the map tile of the builder.

Parameters
mapTile The map tile of the builder.