Package org.eclipse.m2m.atl.emftvm.util
Class LazyCollection.UnionSetIterator
- java.lang.Object
-
- org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReadOnlyIterator<E>
-
- org.eclipse.m2m.atl.emftvm.util.LazyCollection.CachingIterator
-
- org.eclipse.m2m.atl.emftvm.util.LazyCollection.CachingSetIterator
-
- org.eclipse.m2m.atl.emftvm.util.LazyCollection.UnionSetIterator
-
- All Implemented Interfaces:
java.util.Iterator<E>
- Enclosing class:
- LazyCollection<E>
public class LazyCollection.UnionSetIterator extends LazyCollection.CachingSetIterator
Iteratorthat returns first the elements of the underlying collection, then the elements of the other collection, with all duplicates removed.
-
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Iterator<? extends E>addedprotected booleaninnerNextprotected java.lang.Iterable<? extends E>s-
Fields inherited from class org.eclipse.m2m.atl.emftvm.util.LazyCollection.CachingSetIterator
next, nextSet, returnedValues
-
Fields inherited from class org.eclipse.m2m.atl.emftvm.util.LazyCollection.CachingIterator
i, inner
-
-
Constructor Summary
Constructors Constructor Description UnionSetIterator(java.lang.Iterable<? extends E> s)Creates a newLazyCollection.UnionIteratorfor the underlying collection ands.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Enext()-
Methods inherited from class org.eclipse.m2m.atl.emftvm.util.LazyCollection.CachingIterator
updateCache
-
Methods inherited from class org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReadOnlyIterator
remove
-
-
-
-
Constructor Detail
-
UnionSetIterator
public UnionSetIterator(java.lang.Iterable<? extends E> s)
Creates a newLazyCollection.UnionIteratorfor the underlying collection ands.- Parameters:
s- the collection to union with this
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<E>- Overrides:
hasNextin classLazyCollection.CachingSetIterator
-
next
public E next()
- Specified by:
nextin interfacejava.util.Iterator<E>- Overrides:
nextin classLazyCollection.CachingSetIterator
-
-