Package org.eclipse.m2m.atl.emftvm.util
Class LazySet.IncludingSet.IncludingSetIterator
- java.lang.Object
-
- org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReadOnlyIterator<E>
-
- org.eclipse.m2m.atl.emftvm.util.LazyCollection.WrappedIterator
-
- org.eclipse.m2m.atl.emftvm.util.LazySet.IncludingSet.IncludingSetIterator
-
- All Implemented Interfaces:
java.util.Iterator<E>
- Enclosing class:
- LazySet.IncludingSet<E>
public class LazySet.IncludingSet.IncludingSetIterator extends LazyCollection.WrappedIterator
Iterator
that appends an object to the underlying collection, except when it already occurs in the underlying collection.
-
-
Field Summary
Fields Modifier and Type Field Description protected boolean
beforeTail
protected boolean
innerNext
protected E
object
-
Fields inherited from class org.eclipse.m2m.atl.emftvm.util.LazyCollection.WrappedIterator
inner
-
-
Constructor Summary
Constructors Constructor Description IncludingSetIterator(E object)
Creates a newLazySet.IncludingSet.IncludingSetIterator
.
-
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.ReadOnlyIterator
remove
-
-
-
-
Field Detail
-
object
protected final E object
-
beforeTail
protected boolean beforeTail
-
innerNext
protected boolean innerNext
-
-
Constructor Detail
-
IncludingSetIterator
public IncludingSetIterator(E object)
Creates a newLazySet.IncludingSet.IncludingSetIterator
.- Parameters:
object
- the object to include
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<E>
- Overrides:
hasNext
in classLazyCollection.WrappedIterator
-
next
public E next()
- Specified by:
next
in interfacejava.util.Iterator<E>
- Overrides:
next
in classLazyCollection.WrappedIterator
-
-