Class ReverseListIterator<T>
java.lang.Object
org.aksw.commons.collections.lists.ReverseListIterator<T>
- All Implemented Interfaces:
Iterator<T>, ListIterator<T>
ListIterator wrapper that delegates next() calls to the delegate.previous() and vice versa.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected ListIterator<T> booleanhasNext()booleannext()intstatic <T> ListIterator<T> of(ListIterator<T> it) previous()intvoidremove()voidMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining
-
Field Details
-
delegate
-
-
Constructor Details
-
ReverseListIterator
-
-
Method Details
-
of
-
getDelegate
-
hasNext
-
next
-
hasPrevious
public boolean hasPrevious()- Specified by:
hasPreviousin interfaceListIterator<T>
-
previous
- Specified by:
previousin interfaceListIterator<T>
-
nextIndex
public int nextIndex()- Specified by:
nextIndexin interfaceListIterator<T>
-
previousIndex
public int previousIndex()- Specified by:
previousIndexin interfaceListIterator<T>
-
remove
-
set
- Specified by:
setin interfaceListIterator<T>
-
add
- Specified by:
addin interfaceListIterator<T>
-