E
- The elements type.@NotThreadSafe
public class ReverseListIterator<E>
extends Object
implements ListIterator<E>
Constructor and Description |
---|
ReverseListIterator(ListIterator<E> iterator)
Constructs an instance.
|
Modifier and Type | Method and Description |
---|---|
void |
add(E element) |
boolean |
hasNext() |
boolean |
hasPrevious() |
E |
next() |
int |
nextIndex() |
E |
previous() |
int |
previousIndex() |
void |
remove() |
void |
set(E element) |
public ReverseListIterator(@Nonnull ListIterator<E> iterator)
iterator
- The reversed iterator.public boolean hasNext()
public boolean hasPrevious()
hasPrevious
in interface ListIterator<E>
public E next()
public int nextIndex()
nextIndex
in interface ListIterator<E>
public int previousIndex()
previousIndex
in interface ListIterator<E>
public void remove()
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.