E
- public class ReverseListIterator<E> extends Object implements Iterator<E>
Modifier and Type | Field and Description |
---|---|
protected int |
current
The current index of the list
|
protected List<E> |
list
The list to get elements from
|
Constructor and Description |
---|
ReverseListIterator(List<E> list)
Construct a ReverseListIterator for the given list.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Check if there are more elements.
|
E |
next()
Get the next element.
|
void |
remove()
Remove the current element.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public boolean hasNext()
public E next()
next
in interface Iterator<E>
NoSuchElementException
Copyright © 2018 JBoss by Red Hat. All rights reserved.