Package org.eclipse.m2m.atl.emftvm.util
Class LazyCollection.UnionIterator
- All Implemented Interfaces:
Iterator<E>
- Enclosing class:
- LazyCollection<E>
Iterator
that returns first the elements of the underlying
collection, then the elements of the other collection.-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
Fields inherited from class org.eclipse.m2m.atl.emftvm.util.LazyCollection.WrappedIterator
inner
-
Constructor Summary
ConstructorDescriptionUnionIterator
(Iterable<? extends E> s) Creates a newLazyCollection<E>.UnionIterator
for the underlying collection ands
. -
Method Summary
Methods inherited from class org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReadOnlyIterator
remove
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
s
-
added
-
innerNext
protected boolean innerNext
-
-
Constructor Details
-
UnionIterator
Creates a newLazyCollection<E>.UnionIterator
for the underlying collection ands
.- Parameters:
s
- the collection to union with this
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceIterator<E>
- Overrides:
hasNext
in classLazyCollection<E>.WrappedIterator
-
next
- Specified by:
next
in interfaceIterator<E>
- Overrides:
next
in classLazyCollection<E>.WrappedIterator
-