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.ReadOnlyIteratorthat returns the values of the underlying collection in reverse order.
-
-
Constructor Summary
Constructors Constructor Description ReverseListIterator(int lastIndex)Creates a newLazyCollection.ReverseIteratorfor the underlyingList.ReverseListIterator(int lastIndex, int index)Creates a newLazyCollection.ReverseIteratorfor the underlyingList.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()booleanhasPrevious()Enext()intnextIndex()Eprevious()intpreviousIndex()-
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.ReverseIteratorfor the underlyingList.- Parameters:
lastIndex- the last index in the underlying list.
-
ReverseListIterator
public ReverseListIterator(int lastIndex, int index)Creates a newLazyCollection.ReverseIteratorfor the underlyingList.- Parameters:
lastIndex- the last index in the underlying list.index- the iterator starting index.
-
-