|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openstreetmap.osmosis.core.apidb.v0_6.impl.EntityContainerReader<T>
T
- The type of entity provided by this iterator.public class EntityContainerReader<T extends Entity>
Wraps a stream of entity history objects into entity containers. Only visible items will be returned.
Constructor Summary | |
---|---|
EntityContainerReader(ReleasableIterator<EntityHistory<T>> source,
EntityContainerFactory<T> containerFactory)
Creates a new instance. |
Method Summary | |
---|---|
boolean |
hasNext()
|
EntityContainer |
next()
|
void |
release()
Performs resource cleanup tasks such as closing files, or database connections. |
void |
remove()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EntityContainerReader(ReleasableIterator<EntityHistory<T>> source, EntityContainerFactory<T> containerFactory)
source
- The entity history source.containerFactory
- The factory for wrapping entity objects into containers.Method Detail |
---|
public boolean hasNext()
hasNext
in interface java.util.Iterator<EntityContainer>
public EntityContainer next()
next
in interface java.util.Iterator<EntityContainer>
public void remove()
remove
in interface java.util.Iterator<EntityContainer>
public void release()
release
in interface Releasable
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |