Package ghidra.util
Class ReversedListIterator<E>
- java.lang.Object
-
- ghidra.util.ReversedListIterator<E>
-
- Type Parameters:
E- the type of each element
- All Implemented Interfaces:
java.util.Iterator<E>,java.util.ListIterator<E>
public class ReversedListIterator<E> extends java.lang.Object implements java.util.ListIterator<E>Wraps aListIteratorso that the operations are reversed.
-
-
Constructor Summary
Constructors Constructor Description ReversedListIterator(java.util.ListIterator<E> it)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(E e)booleanhasNext()booleanhasPrevious()Enext()intnextIndex()Eprevious()intpreviousIndex()voidremove()voidset(E e)
-
-
-
Constructor Detail
-
ReversedListIterator
public ReversedListIterator(java.util.ListIterator<E> it)
-
-
Method Detail
-
hasNext
public boolean hasNext()
-
next
public E next()
-
hasPrevious
public boolean hasPrevious()
- Specified by:
hasPreviousin interfacejava.util.ListIterator<E>
-
nextIndex
public int nextIndex()
- Specified by:
nextIndexin interfacejava.util.ListIterator<E>
-
previousIndex
public int previousIndex()
- Specified by:
previousIndexin interfacejava.util.ListIterator<E>
-
remove
public void remove()
-
-