Package org.eclipse.m2m.atl.emftvm.util
Class LazyCollection.ReverseListIterator
- 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.ReverseListIterator
-
- All Implemented Interfaces:
java.util.Iterator<E>
,java.util.ListIterator<E>
- Enclosing class:
- LazyCollection<E>
public class LazyCollection.ReverseListIterator extends LazyCollection.ReadOnlyListIterator<E>
LazyCollection.ReadOnlyIterator
that returns the values of the underlying collection in reverse order.
-
-
Constructor Summary
Constructors Constructor Description ReverseListIterator(int lastIndex)
Creates a newLazyCollection.ReverseIterator
for the underlyingList
.ReverseListIterator(int lastIndex, int index)
Creates a newLazyCollection.ReverseIterator
for the underlyingList
.
-
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
-
ReverseListIterator
public ReverseListIterator(int lastIndex)
Creates a newLazyCollection.ReverseIterator
for the underlyingList
.- Parameters:
lastIndex
- the last index in the underlying list.
-
ReverseListIterator
public ReverseListIterator(int lastIndex, int index)
Creates a newLazyCollection.ReverseIterator
for the underlyingList
.- Parameters:
lastIndex
- the last index in the underlying list.index
- the iterator starting index.
-
-