Package org.geotools.feature.visitor
Class CountVisitor
Object
CountVisitor
- All Implemented Interfaces:
FeatureVisitor,FeatureCalc
Determines the number of features in the collection
- Since:
- 2.2.M2
- Author:
- Cory Horner, Refractions
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetCount()Returns the result of the calculation as a handy object which can be merged and modified.voidinit(SimpleFeatureCollection collection) voidreset()voidsetValue(int count) voidVisit the provided feature.voidvisit(SimpleFeature feature)
-
Constructor Details
-
CountVisitor
public CountVisitor()
-
-
Method Details
-
init
-
visit
-
visit
Description copied from interface:FeatureVisitorVisit the provided feature.Please consult the documentation for the FeatureCollection you are visiting to learn more - the provided feature may be invalid, or read only.
- Specified by:
visitin interfaceFeatureVisitor
-
getCount
public int getCount() -
setValue
public void setValue(int count) -
reset
public void reset() -
getResult
Description copied from interface:FeatureCalcReturns the result of the calculation as a handy object which can be merged and modified.- Specified by:
getResultin interfaceFeatureCalc- Returns:
- the results of the calculation
-