diva.pod.lwgraph
Class LightweightGraph.TraversalIterator
java.lang.Object
diva.util.IteratorAdapter
diva.pod.lwgraph.LightweightGraph.TraversalIterator
- All Implemented Interfaces:
- Iterator
- Enclosing class:
- LightweightGraph
public class LightweightGraph.TraversalIterator
- extends IteratorAdapter
The iterator class that is used to iterate over integer
arrays of things and map them into objects. Removal is
not supported. A null argument is treated as an empty iterator.
Method Summary |
boolean |
hasNext()
Return true if there are more elements in the array. |
Object |
next()
Return the next element. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LightweightGraph.TraversalIterator
public LightweightGraph.TraversalIterator(int[] indexes,
Object[] map)
hasNext
public boolean hasNext()
- Return true if there are more elements in the array.
- Specified by:
hasNext
in interface Iterator
- Overrides:
hasNext
in class IteratorAdapter
next
public Object next()
- Return the next element.
- Specified by:
next
in interface Iterator
- Overrides:
next
in class IteratorAdapter
Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.