Package org.graffiti.util
Class RedundantMultipleIterator
java.lang.Object
org.graffiti.util.RedundantMultipleIterator
@Deprecated public class RedundantMultipleIterator extends Object implements Iterator<Object>
Deprecated.
Class
MultipleIterator encapsulates a number of instances
implementing the java.util.Iterator interface. It is possible to
iterate over all the iterators one after the other.- Version:
- $Revision: 1.5 $
- TODO
- To be removed in future versions.
-
Constructor Summary
Constructors Constructor Description RedundantMultipleIterator(Iterator[] iters)Deprecated.Constructs a newMultipleIteratorinstance.RedundantMultipleIterator(Iterator<?> itr)Deprecated.Constructs a newMultipleIteratorinstance.RedundantMultipleIterator(Iterator<?> itr1, Iterator<?> itr2)Deprecated.Constructs a newMultipleIteratorinstance.RedundantMultipleIterator(Iterator<?> itr1, Iterator<?> itr2, Iterator<?> itr3)Deprecated.Constructs a newMultipleIteratorinstance. -
Method Summary
Modifier and Type Method Description booleanhasNext()Deprecated.Returnstrueif the iteration has not yet passed each of the iterators,falseotherwise.Objectnext()Deprecated.Returns the next element of the iteration.voidremove()Deprecated.The methodremove()of the interfacejava.util.Iteratorwill not be supported in this implementation.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
RedundantMultipleIterator
Deprecated.Constructs a newMultipleIteratorinstance.- Parameters:
iters- the iterators over which to iterate.
-
RedundantMultipleIterator
Deprecated.Constructs a newMultipleIteratorinstance.- Parameters:
itr- the iterator over which to iterate.
-
RedundantMultipleIterator
Deprecated.Constructs a newMultipleIteratorinstance.- Parameters:
itr1- the first iterator over which to iterate.itr2- the second iterator over which to iterate.
-
RedundantMultipleIterator
Deprecated.Constructs a newMultipleIteratorinstance.- Parameters:
itr1- the first iterator over which to iterate.itr2- the second iterator over which to iterate.itr3- the third iterator over which to iterate.
-
-
Method Details
-
hasNext
public boolean hasNext()Deprecated.Returnstrueif the iteration has not yet passed each of the iterators,falseotherwise. -
next
Deprecated.Returns the next element of the iteration. If the end of one iterator has been reached, the iteration will be continued on the next one.- Specified by:
nextin interfaceIterator<Object>- Returns:
- the next element of the iteration.
- Throws:
NoSuchElementException- DOCUMENT ME!
-
remove
Deprecated.The methodremove()of the interfacejava.util.Iteratorwill not be supported in this implementation.- Specified by:
removein interfaceIterator<Object>- Throws:
UnsupportedOperationException- if the method is called.
-