net.ontopia.utils
Class IteratorIterator

java.lang.Object
  extended by net.ontopia.utils.IteratorIterator
All Implemented Interfaces:
java.util.Iterator

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

INTERNAL: An iterator that works as a facade for multiple iterators. The iterator represents the sum of all the iterators.


Constructor Summary
IteratorIterator(java.util.Collection colls_or_iters)
           
 
Method Summary
 boolean hasNext()
           
 java.lang.Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IteratorIterator

public IteratorIterator(java.util.Collection colls_or_iters)
Parameters:
colls_or_iters - a collection of collections or iterators.
Method Detail

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

remove

public void remove()
Specified by:
remove in interface java.util.Iterator


Copyright © 2000-2010 Ontopia.