textmaven.dictionaries
Class CompositeIterator

java.lang.Object
  extended bytextmaven.dictionaries.CompositeIterator
All Implemented Interfaces:
java.util.Iterator

public class CompositeIterator
extends java.lang.Object
implements java.util.Iterator

Implements an iterator over any number of iterators

Author:
krebtho

Constructor Summary
CompositeIterator()
          Constructor
CompositeIterator(java.util.Iterator iter)
          Constructor
 
Method Summary
 void add(java.util.Iterator iter)
          Adds an iterator.
 boolean hasNext()
           
 java.lang.Object next()
           
 void remove()
          Not supported!!
 void removeAll()
          Removes all iterators
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompositeIterator

public CompositeIterator()
Constructor


CompositeIterator

public CompositeIterator(java.util.Iterator iter)
Constructor

Parameters:
iter - iterator intially set
Method Detail

add

public void add(java.util.Iterator iter)
Adds an iterator. Calling this function after iteration has started may result in unspecified behaviour.

Parameters:
iter - Iterator to be added

removeAll

public void removeAll()
Removes all iterators


remove

public void remove()
Not supported!!

Specified by:
remove in interface java.util.Iterator
See Also:
Iterator.remove()

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator


Copyright © 2002-2005 Sourceforge. All Rights Reserved.