Class LazyCollection.IntersectionIterator
java.lang.Object
org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReadOnlyIterator<E>
LazyCollection<E>.org.eclipse.m2m.atl.emftvm.util.LazyCollection.CachingIterator
org.eclipse.m2m.atl.emftvm.util.LazyCollection.IntersectionIterator
- All Implemented Interfaces:
Iterator<E>
- Enclosing class:
LazyCollection<E>
LazyCollection.ReadOnlyIterator that returns only elements contained in both underlying collections.-
Field Summary
FieldsFields inherited from class LazyCollection.CachingIterator
i, inner -
Constructor Summary
Constructors -
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
-
next
-
nextSet
protected boolean nextSet
-
-
Constructor Details
-
IntersectionIterator
Creates a newLazyCollection<E>.IntersectionIteratoron this ands.- Parameters:
s- the collection to intersect with this
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<E>- Overrides:
hasNextin classLazyCollection<E>.CachingIterator
-
next
- Specified by:
nextin interfaceIterator<E>- Overrides:
nextin classLazyCollection<E>.CachingIterator
-