Package org.eclipse.m2m.atl.emftvm.util
Class LazyCollection.FlattenIterator
- java.lang.Object
-
- org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReadOnlyIterator<java.lang.Object>
-
- org.eclipse.m2m.atl.emftvm.util.LazyCollection.FlattenIterator
-
- All Implemented Interfaces:
java.util.Iterator<java.lang.Object>
- Enclosing class:
- LazyCollection<E>
public static class LazyCollection.FlattenIterator extends LazyCollection.ReadOnlyIterator<java.lang.Object>
Recursively flattens any nestedIterable
s by iterating over their elements as well.
-
-
Constructor Summary
Constructors Constructor Description FlattenIterator(java.lang.Iterable<?> inner)
Creates a newLazyCollection.FlattenIterator
aroundinner
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
java.lang.Object
next()
-
Methods inherited from class org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReadOnlyIterator
remove
-
-
-
-
Constructor Detail
-
FlattenIterator
public FlattenIterator(java.lang.Iterable<?> inner)
Creates a newLazyCollection.FlattenIterator
aroundinner
.- Parameters:
inner
- the underlying collection
-
-