Package org.eclipse.m2m.atl.emftvm.util
Class LazyCollection.IntersectionIterator
- java.lang.Object
-
- org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReadOnlyIterator<E>
-
- org.eclipse.m2m.atl.emftvm.util.LazyCollection.CachingIterator
-
- org.eclipse.m2m.atl.emftvm.util.LazyCollection.IntersectionIterator
-
- All Implemented Interfaces:
java.util.Iterator<E>
- Enclosing class:
- LazyCollection<E>
public class LazyCollection.IntersectionIterator extends LazyCollection.CachingIterator
LazyCollection.ReadOnlyIterator
that returns only elements contained in both underlying collections.
-
-
Constructor Summary
Constructors Constructor Description IntersectionIterator(java.util.Collection<E> s)
Creates a newLazyCollection.IntersectionIterator
on this 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.CachingIterator
updateCache
-
Methods inherited from class org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReadOnlyIterator
remove
-
-
-
-
Constructor Detail
-
IntersectionIterator
public IntersectionIterator(java.util.Collection<E> s)
Creates a newLazyCollection.IntersectionIterator
on this ands
.- Parameters:
s
- the collection to intersect with this
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<E>
- Overrides:
hasNext
in classLazyCollection.CachingIterator
-
next
public E next()
- Specified by:
next
in interfacejava.util.Iterator<E>
- Overrides:
next
in classLazyCollection.CachingIterator
-
-