T - the generic typepublic class GeneralIterable<T>
extends java.lang.Object
implements java.lang.Iterable<T>
| Constructor and Description |
|---|
GeneralIterable(java.util.Iterator<T> surroundingIterator)
Instantiates a new general iterable.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> java.lang.Iterable<T> |
asIterator(java.util.Iterator<T> a)
Helper to create instances of this class as
new GeneralIterable(...) where ... is an iterator of any type
|
java.util.Iterator<T> |
iterator()
Iterator.
|
public GeneralIterable(java.util.Iterator<T> surroundingIterator)
surroundingIterator - the surrounding iteratorpublic java.util.Iterator<T> iterator()
iterator in interface java.lang.Iterable<T>public static <T> java.lang.Iterable<T> asIterator(java.util.Iterator<T> a)
T - the generic typea - the aCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa