Package ch.njol.util.coll.iterator
Class ReversedListIterator<T>
java.lang.Object
ch.njol.util.coll.iterator.ReversedListIterator<T>
- All Implemented Interfaces:
Iterator<T>
,ListIterator<T>
-
Constructor Summary
ConstructorDescriptionReversedListIterator(List<T> list)
ReversedListIterator(List<T> list, int index)
ReversedListIterator(ListIterator<T> iter)
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
ReversedListIterator
-
ReversedListIterator
-
ReversedListIterator
-
-
Method Details
-
hasNext
public boolean hasNext() -
next
-
hasPrevious
public boolean hasPrevious()- Specified by:
hasPrevious
in interfaceListIterator<T>
-
previous
- Specified by:
previous
in interfaceListIterator<T>
-
nextIndex
public int nextIndex()- Specified by:
nextIndex
in interfaceListIterator<T>
-
previousIndex
public int previousIndex()- Specified by:
previousIndex
in interfaceListIterator<T>
-
remove
public void remove() -
set
- Specified by:
set
in interfaceListIterator<T>
-
add
- Specified by:
add
in interfaceListIterator<T>
-