Package org.eclipse.m2m.atl.emftvm.util
Class LazyCollection.SubListListIterator
- 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.SubListListIterator
-
- All Implemented Interfaces:
java.util.Iterator<E>
,java.util.ListIterator<E>
- Enclosing class:
- LazyCollection<E>
public class LazyCollection.SubListListIterator extends LazyCollection.ReadOnlyListIterator<E>
Iterator
that iterates over a subrange of the underlyingLazyList
's contents.
-
-
Constructor Summary
Constructors Constructor Description SubListListIterator(int fromIndex, int toIndex)
Creates aLazyCollection.SubListListIterator
for the rangefromIndex
, including, totoIndex
, excluding.SubListListIterator(int fromIndex, int toIndex, int index)
Creates aLazyCollection.SubListListIterator
for the rangefromIndex
, including, totoIndex
, excluding.
-
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
-
SubListListIterator
public SubListListIterator(int fromIndex, int toIndex)
Creates aLazyCollection.SubListListIterator
for the rangefromIndex
, including, totoIndex
, excluding.- Parameters:
fromIndex
- the starting index. inclusivetoIndex
- the ending index, exclusive
-
SubListListIterator
public SubListListIterator(int fromIndex, int toIndex, int index)
Creates aLazyCollection.SubListListIterator
for the rangefromIndex
, including, totoIndex
, excluding.- Parameters:
fromIndex
- the starting index, inclusivetoIndex
- the ending index, exclusiveindex
- the iterator starting index.
-
-