com.myjavatools.lib.foundation
Class CompoundIterable<T>
java.lang.Object
com.myjavatools.lib.foundation.CompoundIterable<T>
- All Implemented Interfaces:
- java.lang.Iterable<T>
public class CompoundIterable<T>
- extends java.lang.Object
- implements java.lang.Iterable<T>
CompoundIterable is an Iterable that is composed of several other iterable.
Its iterator() returns an iterator that scans through the components'
iterators, one after another.
- Since:
- 5.0
- Version:
- 5.0, 12/03/04
- See Also:
java.util.Iterable,
com.myjavatools.lib.foundations.Iterators
|
Constructor Summary |
CompoundIterable(java.lang.Iterable<? extends java.lang.Iterable<? extends T>> components)
builds a CompoundIterable from an Iterable container of of Iterable components |
CompoundIterable(java.lang.Iterable<? extends T>... components)
builds a CompoundIterable from a vararg list of Iterable components |
|
Method Summary |
java.util.Iterator<T> |
iterator()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompoundIterable
public CompoundIterable(java.lang.Iterable<? extends T>... components)
- builds a CompoundIterable from a vararg list of Iterable components
- Parameters:
components - Iterable...
CompoundIterable
public CompoundIterable(java.lang.Iterable<? extends java.lang.Iterable<? extends T>> components)
- builds a CompoundIterable from an Iterable container of of Iterable components
- Parameters:
components - Iterable extends Iterable extends T>>
iterator
public java.util.Iterator<T> iterator()
- Specified by:
iterator in interface java.lang.Iterable<T>