|
Neo4j Enterprise | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.neo4j.helpers.collection.PositionedIterator<T>
public class PositionedIterator<T>
Decorator class that wraps any iterator and remembers the current node.
| Constructor Summary | |
|---|---|
PositionedIterator(java.util.Iterator<? extends T> iterator)
Creates an instance of the class, wrapping iterator |
|
| Method Summary | |
|---|---|
T |
current()
Returns the current node. |
boolean |
hasNext()
|
T |
next()
|
void |
remove()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PositionedIterator(java.util.Iterator<? extends T> iterator)
iterator - The iterator to wrap| Method Detail |
|---|
public boolean hasNext()
hasNext in interface java.util.Iterator<T>public T next()
next in interface java.util.Iterator<T>public void remove()
remove in interface java.util.Iterator<T>public T current()
|
Neo4j Enterprise | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||