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:
Iterator<E>,ListIterator<E>
- Enclosing class:
LazyCollection<E>
LazyCollection.ReadOnlyIterator that returns the values of the underlying
collection in reverse order.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionReverseListIterator(int lastIndex) Creates a newLazyCollection<E>.ReverseIteratorfor the underlyingList.ReverseListIterator(int lastIndex, int index) Creates a newLazyCollection<E>.ReverseIteratorfor the underlyingList. -
Method Summary
Methods inherited from class org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReadOnlyListIterator
add, setMethods inherited from class org.eclipse.m2m.atl.emftvm.util.LazyCollection.ReadOnlyIterator
removeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemainingMethods inherited from interface java.util.ListIterator
remove
-
Field Details
-
lastIndex
protected final int lastIndex -
index
protected int index
-
-
Constructor Details
-
ReverseListIterator
public ReverseListIterator(int lastIndex) Creates a newLazyCollection<E>.ReverseIteratorfor the underlyingList.- Parameters:
lastIndex- the last index in the underlying list.
-
ReverseListIterator
public ReverseListIterator(int lastIndex, int index) Creates a newLazyCollection<E>.ReverseIteratorfor the underlyingList.- Parameters:
lastIndex- the last index in the underlying list.index- the iterator starting index.
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
-
nextIndex
public int nextIndex() -
hasPrevious
public boolean hasPrevious() -
previous
-
previousIndex
public int previousIndex()
-