public class CountVisitor extends Object implements FeatureCalc
| Modifier and Type | Class and Description |
|---|---|
static class |
CountVisitor.CountResult |
| Constructor and Description |
|---|
CountVisitor() |
| Modifier and Type | Method and Description |
|---|---|
int |
getCount() |
CalcResult |
getResult()
Returns the result of the calculation as a handy object which can be merged and modified.
|
void |
init(SimpleFeatureCollection collection) |
void |
reset() |
void |
setValue(int count) |
void |
visit(Feature feature)
Visit the provided feature.
|
void |
visit(SimpleFeature feature) |
public void init(SimpleFeatureCollection collection)
public void visit(SimpleFeature feature)
public void visit(Feature feature)
FeatureVisitorPlease consult the documentation for the FeatureCollection you are visiting to learn more - the provided feature may be invalid, or read only.
visit in interface FeatureVisitorpublic int getCount()
public void setValue(int count)
public void reset()
public CalcResult getResult()
FeatureCalcgetResult in interface FeatureCalcCopyright © 1996–2019 Geotools. All rights reserved.