SolarMetric Kodo JDO 2.5.8 generated on January 11 2004

serp.util
Class MultiIterator

java.lang.Object
  |
  +--serp.util.MultiIterator
All Implemented Interfaces:
Iterator

public abstract class MultiIterator
extends Object
implements Iterator

Iterator type that can combine multiple iterators into one logical iterator.

The Jakarta project's Commons Collections module contains an IteratorChain that is similar to this iterator, but does not support lazy instantiation of iterators


Constructor Summary
MultiIterator()
           
 
Method Summary
 boolean hasNext()
           
protected abstract  Iterator newIterator(int index)
          Implement this method to return the iterator at the indexth position in the list of iterators to process.
 Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiIterator

public MultiIterator()
Method Detail

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

newIterator

protected abstract Iterator newIterator(int index)
Implement this method to return the iterator at the indexth position in the list of iterators to process. Indexing starts at 0 and will proceed upward linearly, never repeating the same index. Return null to indicate that there are no more iterators to process. You may return null to index 0, in which case this iterator will act like an iterator over an empty collection.

SolarMetric Kodo JDO 2.5.8 generated on January 11 2004

Copyright 2001,2002,2003 SolarMetric, Inc. All Rights Reserved.