E - 元素类型public class IteratorEnumeration<E> extends Object implements Enumeration<E>
| Constructor and Description |
|---|
IteratorEnumeration() |
IteratorEnumeration(Iterator<? extends E> iterator)
构造
|
| Modifier and Type | Method and Description |
|---|---|
Iterator<? extends E> |
getIterator() |
boolean |
hasMoreElements()
如果底层迭代器有更多的元素,则返回true。
|
E |
nextElement()
从基础迭代器返回下一个元素.
|
void |
setIterator(Iterator<? extends E> iterator) |
public boolean hasMoreElements()
hasMoreElements in interface Enumeration<E>public E nextElement()
nextElement in interface Enumeration<E>Copyright © 2020. All rights reserved.