Package org.eclipse.m2m.atl.emftvm.util
Class LazyCollection.ReverseIterator
- java.lang.Object
-
- org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReadOnlyIterator<E>
-
- org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReverseIterator
-
- All Implemented Interfaces:
java.util.Iterator<E>
- Enclosing class:
- LazyCollection<E>
public class LazyCollection.ReverseIterator extends LazyCollection.ReadOnlyIterator<E>
LazyCollection.ReadOnlyIterator
that returns the values of the underlying collection in reverse order.
-
-
Field Summary
Fields Modifier and Type Field Description protected int
index
-
Constructor Summary
Constructors Constructor Description ReverseIterator(int lastIndex)
Creates a newLazyCollection.ReverseIterator
for the underlyingList
.
-
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
-
-
-
-
Constructor Detail
-
ReverseIterator
public ReverseIterator(int lastIndex)
Creates a newLazyCollection.ReverseIterator
for the underlyingList
.- Parameters:
lastIndex
- the last index in the underlying list.
-
-
Method Detail
-
hasNext
public boolean hasNext()
-
next
public E next()
-
-