class TypedGraphNodeIterator<T extends IterableNodeType> extends Object implements Iterator<T>
Modifier and Type | Field and Description |
---|---|
private Node[] |
current |
private int |
currentIdIndex |
private Graph |
graph |
private int[] |
ids |
private boolean |
needsForward |
Constructor and Description |
---|
TypedGraphNodeIterator(NodeClass<?> clazz,
Graph graph) |
Modifier and Type | Method and Description |
---|---|
private Node |
current() |
private Node |
findNext() |
private void |
forward() |
boolean |
hasNext() |
T |
next() |
void |
remove() |
private void |
setCurrent(Node n) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
private final int[] ids
private int currentIdIndex
private boolean needsForward
public TypedGraphNodeIterator(NodeClass<?> clazz, Graph graph)
private void forward()
private void setCurrent(Node n)
public boolean hasNext()
hasNext
in interface Iterator<T extends IterableNodeType>
public void remove()
remove
in interface Iterator<T extends IterableNodeType>