org.sakaiproject.component.legacy.authzGroup
Class SeriesIterator

java.lang.Object
  extended byorg.sakaiproject.component.legacy.authzGroup.SeriesIterator
All Implemented Interfaces:
Iterator

public class SeriesIterator
extends Object
implements Iterator

SeriesIterator is an iterator over a series of other iterators.

Version:
$Revision: 2367 $
Author:
University of Michigan, Sakai Software Development Team

Field Summary
protected  int m_index
          The m_iterators index that is current.
protected  Iterator[] m_iterators
          The enumeration over which this iterates.
 
Constructor Summary
SeriesIterator(Iterator one, Iterator two)
          Construct to handle a series of two iterators.
 
Method Summary
 boolean hasNext()
           
 Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_iterators

protected Iterator[] m_iterators
The enumeration over which this iterates.


m_index

protected int m_index
The m_iterators index that is current.

Constructor Detail

SeriesIterator

public SeriesIterator(Iterator one,
                      Iterator two)
Construct to handle a series of two iterators.

Parameters:
one - The first iterator.
two - The second iterator.
Method Detail

next

public Object next()
            throws NoSuchElementException
Specified by:
next in interface Iterator
Throws:
NoSuchElementException

hasNext

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

remove

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