Package org.eclipse.m2m.atl.emftvm.util
Class LazyOrderedSet.AppendOrderedSet.AppendOrderedSetListIterator
- java.lang.Object
-
- org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReadOnlyIterator<E>
-
- org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReadOnlyListIterator<E>
-
- org.eclipse.m2m.atl.emftvm.util.LazyCollection.WrappedListIterator
-
- org.eclipse.m2m.atl.emftvm.util.LazyOrderedSet.AppendOrderedSet.AppendOrderedSetListIterator
-
- All Implemented Interfaces:
java.util.Iterator<E>
,java.util.ListIterator<E>
- Enclosing class:
- LazyOrderedSet.AppendOrderedSet<E>
public class LazyOrderedSet.AppendOrderedSet.AppendOrderedSetListIterator extends LazyCollection.WrappedListIterator
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
-
Fields inherited from class org.eclipse.m2m.atl.emftvm.util.LazyCollection.WrappedListIterator
inner
-
-
Constructor Summary
Constructors Constructor Description AppendOrderedSetListIterator()
Creates a newLazyOrderedSet.AppendOrderedSet.AppendOrderedSetListIterator
.AppendOrderedSetListIterator(int index)
Creates a newLazyOrderedSet.AppendOrderedSet.AppendOrderedSetListIterator
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
boolean
hasPrevious()
E
next()
int
nextIndex()
E
previous()
int
previousIndex()
-
Methods inherited from class org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReadOnlyListIterator
add, set
-
Methods inherited from class org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReadOnlyIterator
remove
-
-
-
-
Constructor Detail
-
AppendOrderedSetListIterator
public AppendOrderedSetListIterator()
Creates a newLazyOrderedSet.AppendOrderedSet.AppendOrderedSetListIterator
.
-
AppendOrderedSetListIterator
public AppendOrderedSetListIterator(int index)
Creates a newLazyOrderedSet.AppendOrderedSet.AppendOrderedSetListIterator
.- Parameters:
index
- the iterator starting index.
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<E>
- Specified by:
hasNext
in interfacejava.util.ListIterator<E>
- Overrides:
hasNext
in classLazyCollection.WrappedListIterator
-
next
public E next()
- Specified by:
next
in interfacejava.util.Iterator<E>
- Specified by:
next
in interfacejava.util.ListIterator<E>
- Overrides:
next
in classLazyCollection.WrappedListIterator
-
nextIndex
public int nextIndex()
- Specified by:
nextIndex
in interfacejava.util.ListIterator<E>
- Overrides:
nextIndex
in classLazyCollection.WrappedListIterator
-
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPrevious
in interfacejava.util.ListIterator<E>
- Overrides:
hasPrevious
in classLazyCollection.WrappedListIterator
-
previous
public E previous()
- Specified by:
previous
in interfacejava.util.ListIterator<E>
- Overrides:
previous
in classLazyCollection.WrappedListIterator
-
previousIndex
public int previousIndex()
- Specified by:
previousIndex
in interfacejava.util.ListIterator<E>
- Overrides:
previousIndex
in classLazyCollection.WrappedListIterator
-
-