Class LazyBag.BagIntersectionIterator
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.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 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
-
Constructor Details
-
BagIntersectionIterator
Creates a newLazyBag<E>.BagIntersectionIteratoron 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
-