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.ReadOnlyIteratorthat returns the values of the underlying collection in reverse order.
-
-
Field Summary
Fields Modifier and Type Field Description protected intindex
-
Constructor Summary
Constructors Constructor Description ReverseIterator(int lastIndex)Creates a newLazyCollection.ReverseIteratorfor the underlyingList.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Enext()-
Methods inherited from class org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReadOnlyIterator
remove
-
-
-
-
Constructor Detail
-
ReverseIterator
public ReverseIterator(int lastIndex)
Creates a newLazyCollection.ReverseIteratorfor the underlyingList.- Parameters:
lastIndex- the last index in the underlying list.
-
-
Method Detail
-
hasNext
public boolean hasNext()
-
next
public E next()
-
-