mondrian.util
Class UnionIterator<T>

java.lang.Object
  extended by mondrian.util.UnionIterator<T>
All Implemented Interfaces:
Iterator<T>

public class UnionIterator<T>
extends Object
implements Iterator<T>

Iterator over union of several Iterable collections.

Since:
Apr 28, 2008
Author:
jhyde
See Also:
Util.union(Iterable[])
 

Constructor Summary
UnionIterator(Collection<? extends T>... iterables)
           
UnionIterator(Iterable<? extends T>... iterables)
          Creates a UnionIterator.
 
Method Summary
 boolean hasNext()
           
 T next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UnionIterator

public UnionIterator(Iterable<? extends T>... iterables)
Creates a UnionIterator.

Parameters:
iterables - Array of iterables

UnionIterator

public UnionIterator(Collection<? extends T>... iterables)
Method Detail

hasNext

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

next

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

remove

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

SourceForge.net_Logo