|
|||||||||
| 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.ChangeReader<T>
T - The type of entity provided by this iterator.public class ChangeReader<T extends Entity>
Creates change records based on the data provided by an underlying entity history iterator.
| Constructor Summary | |
|---|---|
ChangeReader(ReleasableIterator<EntityHistory<T>> source,
EntityContainerFactory<T> containerFactory)
Creates a new instance. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
|
ChangeContainer |
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 ChangeReader(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<ChangeContainer>public ChangeContainer next()
next in interface java.util.Iterator<ChangeContainer>public void remove()
remove in interface java.util.Iterator<ChangeContainer>public void release()
release in interface Releasable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||