saffron.runtime
Class CompoundIterator

java.lang.Object
  |
  +--saffron.runtime.CompoundIterator
All Implemented Interfaces:
Iterator

public class CompoundIterator
extends Object
implements Iterator

CompoundIterator creates an iterator out of several.


Field Summary
private  int i
           
private  Iterator iterator
           
private  Iterator[] iterators
           
 
Constructor Summary
CompoundIterator(Iterator[] iterators)
           
 
Method Summary
 boolean hasNext()
           
 Object next()
           
private  void nextIterator()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iterators

private Iterator[] iterators

i

private int i

iterator

private Iterator iterator
Constructor Detail

CompoundIterator

public CompoundIterator(Iterator[] iterators)
Method Detail

nextIterator

private void nextIterator()

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator

next

public Object next()
Specified by:
next in interface Iterator

remove

public void remove()
Specified by:
remove in interface Iterator

SourceForge.net_Logo