diva.pod.lwgraph
Class LightweightGraph.TraversalIterator

java.lang.Object
  extended by diva.util.IteratorAdapter
      extended by 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.


Constructor Summary
LightweightGraph.TraversalIterator(int[] indexes, Object[] map)
           
 
Method Summary
 boolean hasNext()
          Return true if there are more elements in the array.
 Object next()
          Return the next element.
 
Methods inherited from class diva.util.IteratorAdapter
remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LightweightGraph.TraversalIterator

public LightweightGraph.TraversalIterator(int[] indexes,
                                          Object[] map)
Method Detail

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.