Package org.eclipse.m2m.atl.emftvm.util
Class LazyCollection.UnionIterator
- java.lang.Object
-
- org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReadOnlyIterator<E>
-
- org.eclipse.m2m.atl.emftvm.util.LazyCollection.WrappedIterator
-
- org.eclipse.m2m.atl.emftvm.util.LazyCollection.UnionIterator
-
- All Implemented Interfaces:
java.util.Iterator<E>
- Enclosing class:
- LazyCollection<E>
public class LazyCollection.UnionIterator extends LazyCollection.WrappedIterator
Iterator
that returns first the elements of the underlying collection, then the elements of the other collection.
-
-
Constructor Summary
Constructors Constructor Description UnionIterator(java.lang.Iterable<? extends E> s)
Creates a newLazyCollection.UnionIterator
for the underlying collection ands
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
E
next()
-
Methods inherited from class org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReadOnlyIterator
remove
-
-
-
-
Constructor Detail
-
UnionIterator
public UnionIterator(java.lang.Iterable<? extends E> s)
Creates a newLazyCollection.UnionIterator
for the underlying collection ands
.- Parameters:
s
- the collection to union with this
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<E>
- Overrides:
hasNext
in classLazyCollection.WrappedIterator
-
next
public E next()
- Specified by:
next
in interfacejava.util.Iterator<E>
- Overrides:
next
in classLazyCollection.WrappedIterator
-
-