Package org.eclipse.m2m.atl.emftvm.util
Class LazyList.InsertAtList.InsertAtListIterator
java.lang.Object
org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReadOnlyIterator<E>
org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReadOnlyListIterator<E>
LazyCollection<E>.org.eclipse.m2m.atl.emftvm.util.LazyCollection.WrappedListIterator
org.eclipse.m2m.atl.emftvm.util.LazyList.InsertAtList.InsertAtListIterator
- All Implemented Interfaces:
Iterator<E>,ListIterator<E>
- Enclosing class:
LazyList.InsertAtList<E>
public class LazyList.InsertAtList.InsertAtListIterator
extends LazyCollection<E>.WrappedListIterator
Inserts an element into the underlying collection at the given index.
List index starts at 0.
-
Field Summary
FieldsFields inherited from class org.eclipse.m2m.atl.emftvm.util.LazyCollection.WrappedListIterator
inner -
Constructor Summary
ConstructorsConstructorDescriptionCreates a newLazyList.InsertAtList<E>.InsertAtListIterator.InsertAtListIterator(int index) Creates a newLazyList.InsertAtList<E>.InsertAtListIterator. -
Method Summary
Methods inherited from class org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReadOnlyListIterator
add, setMethods inherited from class org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReadOnlyIterator
removeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemainingMethods inherited from interface java.util.ListIterator
remove
-
Field Details
-
i
protected int i
-
-
Constructor Details
-
InsertAtListIterator
public InsertAtListIterator()Creates a newLazyList.InsertAtList<E>.InsertAtListIterator. -
InsertAtListIterator
public InsertAtListIterator(int index) Creates a newLazyList.InsertAtList<E>.InsertAtListIterator.- Parameters:
index- the iterator starting index, starting from 0 instead of 1.
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<E>- Specified by:
hasNextin interfaceListIterator<E>- Overrides:
hasNextin classLazyCollection<E>.WrappedListIterator
-
next
- Specified by:
nextin interfaceIterator<E>- Specified by:
nextin interfaceListIterator<E>- Overrides:
nextin classLazyCollection<E>.WrappedListIterator
-
nextIndex
public int nextIndex()- Specified by:
nextIndexin interfaceListIterator<E>- Overrides:
nextIndexin classLazyCollection<E>.WrappedListIterator
-
hasPrevious
public boolean hasPrevious()- Specified by:
hasPreviousin interfaceListIterator<E>- Overrides:
hasPreviousin classLazyCollection<E>.WrappedListIterator
-
previous
- Specified by:
previousin interfaceListIterator<E>- Overrides:
previousin classLazyCollection<E>.WrappedListIterator
-
previousIndex
public int previousIndex()- Specified by:
previousIndexin interfaceListIterator<E>- Overrides:
previousIndexin classLazyCollection<E>.WrappedListIterator
-