|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openstreetmap.osmosis.core.store.UpcastIterator<X,Y>
X - The generic class type of the destination data.Y - The more specific class type of the source data.public class UpcastIterator<X,Y extends X>
A simple pass-through iterator that changes an object from a specific class type to a more general class type.
| Constructor Summary | |
|---|---|
UpcastIterator(ReleasableIterator<Y> source)
Creates a new instance. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
|
X |
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 UpcastIterator(ReleasableIterator<Y> source)
source - The input source.| Method Detail |
|---|
public boolean hasNext()
hasNext in interface java.util.Iterator<X>public X next()
next in interface java.util.Iterator<X>public void remove()
remove in interface java.util.Iterator<X>public void release()
release in interface Releasable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||