public class

FeatureCollection

extends Object
java.lang.Object
   ↳ com.carto.geometry.FeatureCollection
Known Direct Subclasses

Class Overview

A collection of features.

Summary

Public Constructors
FeatureCollection(FeatureVector features)
Constructs a FeatureCollection from a vector of features.
Public Methods
synchronized void delete()
Feature getFeature(int index)
Returns the feature at the specified index.
int getFeatureCount()
Returns the number of features in this container.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public FeatureCollection (FeatureVector features)

Constructs a FeatureCollection from a vector of features.

Parameters
features The features for the collection.

Public Methods

public synchronized void delete ()

public Feature getFeature (int index)

Returns the feature at the specified index. Index must be between 0 and getFeatureCount (exclusive).

Parameters
index The index of the feature to get.
Returns
  • The feature at specified index.
Throws
IndexOutOfBoundsException If the index is out of range.

public int getFeatureCount ()

Returns the number of features in this container.

Returns
  • The number of features.