| 限定符和类型 | 字段和说明 |
|---|---|
protected int |
current
The current index of the list
|
protected List<E> |
list
The list to get elements from
|
| 构造器和说明 |
|---|
ReverseListIterator(List<E> list)
Construct a ReverseListIterator for the given list.
|
| 限定符和类型 | 方法和说明 |
|---|---|
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, waitforEachRemainingpublic boolean hasNext()
public E next()
next 在接口中 Iterator<E>NoSuchElementExceptionCopyright © 2021. All rights reserved.