Package org.eclipse.m2m.atl.emftvm.util
Class LazyCollection.SubtractionIterator
- 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.SubtractionIterator
-
- All Implemented Interfaces:
java.util.Iterator<E>
- Enclosing class:
- LazyCollection<E>
public class LazyCollection.SubtractionIterator extends LazyCollection.CachingIterator
LazyCollection.ReadOnlyIterator
that returns elements contained in this underlying collection, but not in the other underlying collection.
-
-
Constructor Summary
Constructors Constructor Description SubtractionIterator(java.util.Collection<?> s)
Creates a newLazyCollection.SubtractionIterator
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
-
-
-
-
Field Detail
-
s
protected final java.util.Collection<?> s
-
next
protected E next
-
nextSet
protected boolean nextSet
-
-
Constructor Detail
-
SubtractionIterator
public SubtractionIterator(java.util.Collection<?> s)
Creates a newLazyCollection.SubtractionIterator
on this ands
.- Parameters:
s
- the collection to subtract from 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
-
-