public class OsmElementCounterIteratorAdapter extends Object implements OsmElementCounter
Constructor and Description |
---|
OsmElementCounterIteratorAdapter(OsmIterator iterator) |
Modifier and Type | Method and Description |
---|---|
void |
count() |
long |
getNumberOfElements(EntityType type) |
long |
getNumberOfNodes() |
long |
getNumberOfRelations() |
long |
getNumberOfWays() |
long |
getTotalNumberOfElements() |
public OsmElementCounterIteratorAdapter(OsmIterator iterator)
public void count()
count
in interface OsmElementCounter
public long getNumberOfNodes()
getNumberOfNodes
in interface OsmElementCounter
public long getNumberOfWays()
getNumberOfWays
in interface OsmElementCounter
public long getNumberOfRelations()
getNumberOfRelations
in interface OsmElementCounter
public long getTotalNumberOfElements()
getTotalNumberOfElements
in interface OsmElementCounter
public long getNumberOfElements(EntityType type)
getNumberOfElements
in interface OsmElementCounter