org.entityfs.util.itr
Class AggregatingIterator<T>

java.lang.Object
  extended by org.entityfs.util.itr.AggregatingIterator<T>
All Implemented Interfaces:
Iterator<T>

Deprecated. Use the version in org.entityfs.support.util instead.

@Deprecated
public class AggregatingIterator<T>
extends Object
implements Iterator<T>

This is an iterator that returns elements from a collection of iterators. The elements from the first iterator returned from the collection are returned first, the elements from the second iterator next, etc.

EntityFS iterators are not thread safe. Don't use them concurrently from several threads without synchronizing access to them.

Since:
1.0
Author:
Karl Gustafsson
See Also:
AggregatingIterator

Constructor Summary
AggregatingIterator(Collection<? extends Iterator<? extends T>> itrs)
          Deprecated.  
AggregatingIterator(Iterator<? extends T>... itrs)
          Deprecated.  
 
Method Summary
 boolean hasNext()
          Deprecated.  
 T next()
          Deprecated.  
 void remove()
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AggregatingIterator

@Deprecated
public AggregatingIterator(Collection<? extends Iterator<? extends T>> itrs)
Deprecated. 

Create an iterator that aggregates the elements from the supplied iterators. The iterators are run in the order that they are returned when iterating over the supplied collection.

Parameters:
itrs - The iterators.

AggregatingIterator

@Deprecated
public AggregatingIterator(Iterator<? extends T>... itrs)
Deprecated. 

Create an iterator that aggregates the elements from the supplied iterators.

Parameters:
itrs - The iterators.
Method Detail

hasNext

public boolean hasNext()
Deprecated. 
Specified by:
hasNext in interface Iterator<T>

next

public T next()
Deprecated. 
Specified by:
next in interface Iterator<T>

remove

public void remove()
Deprecated. 
Specified by:
remove in interface Iterator<T>