Package org.eclipse.m2m.atl.emftvm.util
Class LazyCollection.FlattenSetIterator
- java.lang.Object
-
- org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReadOnlyIterator<java.lang.Object>
-
- org.eclipse.m2m.atl.emftvm.util.LazyCollection.FlattenSetIterator
-
- All Implemented Interfaces:
java.util.Iterator<java.lang.Object>
- Enclosing class:
- LazyCollection<E>
public static class LazyCollection.FlattenSetIterator extends LazyCollection.ReadOnlyIterator<java.lang.Object>
Recursively flattens any nestedIterable
s by iterating over their elements as well. Removes any duplicates from the returned elements.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Iterator<?>
current
protected java.util.Iterator<?>
inner
protected java.lang.Object
next
protected boolean
nextSet
protected java.util.Set<?>
returnedValues
-
Constructor Summary
Constructors Constructor Description FlattenSetIterator(java.lang.Iterable<?> inner)
Creates a newLazyCollection.FlattenSetIterator
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
-
FlattenSetIterator
public FlattenSetIterator(java.lang.Iterable<?> inner)
Creates a newLazyCollection.FlattenSetIterator
aroundinner
.- Parameters:
inner
- the underlying collection
-
-