Package org.eclipse.m2m.atl.emftvm.util
Class LazyBag.BagIntersectionIterator
- All Implemented Interfaces:
Iterator<E>
LazyCollection.ReadOnlyIterator
that returns only elements contained in both underlying collections,
where the element occurs as often as in the collection with the least occurrences of the element.-
Field Summary
Fields inherited from class org.eclipse.m2m.atl.emftvm.util.LazyCollection.CachingIterator
i, inner
-
Constructor Summary
Constructors -
Method Summary
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
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
-
Constructor Details
-
BagIntersectionIterator
Creates a newLazyBag<E>.BagIntersectionIterator
on this ands
.- Parameters:
s
- the collection to intersect with this
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceIterator<E>
- Overrides:
hasNext
in classLazyCollection<E>.CachingIterator
-
next
- Specified by:
next
in interfaceIterator<E>
- Overrides:
next
in classLazyCollection<E>.CachingIterator
-