Class LazyCollection.UnionSetIterator
java.lang.Object
org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReadOnlyIterator<E>
LazyCollection<E>.org.eclipse.m2m.atl.emftvm.util.LazyCollection.CachingIterator
LazyCollection<E>.org.eclipse.m2m.atl.emftvm.util.LazyCollection.CachingSetIterator
org.eclipse.m2m.atl.emftvm.util.LazyCollection.UnionSetIterator
- 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, with all
duplicates removed.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanFields inherited from class LazyCollection.CachingSetIterator
next, nextSet, returnedValuesFields inherited from class LazyCollection.CachingIterator
i, inner -
Constructor Summary
ConstructorsConstructorDescriptionUnionSetIterator(Iterable<? extends E> s) Creates a newLazyCollection<E>.UnionIteratorfor the underlying collection ands. -
Method Summary
Methods inherited from class LazyCollection.CachingIterator
updateCacheMethods inherited from class LazyCollection.ReadOnlyIterator
removeMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining
-
Field Details
-
s
-
added
-
innerNext
protected boolean innerNext
-
-
Constructor Details
-
UnionSetIterator
Creates a newLazyCollection<E>.UnionIteratorfor the underlying collection ands.- Parameters:
s- the collection to union with this
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<E>- Overrides:
hasNextin classLazyCollection<E>.CachingSetIterator
-
next
- Specified by:
nextin interfaceIterator<E>- Overrides:
nextin classLazyCollection<E>.CachingSetIterator
-