Package ghidra.util

Class ReversedListIterator<E>

java.lang.Object
ghidra.util.ReversedListIterator<E>
Type Parameters:
E - the type of each element
All Implemented Interfaces:
Iterator<E>, ListIterator<E>

public class ReversedListIterator<E> extends Object implements ListIterator<E>
Wraps a ListIterator so that the operations are reversed. NOTE: you must obtain an iterator that is already at its end. E.g., if you wish to traverse a list in reverse, you would use new ReversedListIterator<>(list.listIterator(list.size())).