protected static final class BeanContextSupport.BCSIterator extends Object implements Iterator
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
如果迭代具有更多元素,则返回
true 。
|
Object |
next()
返回迭代中的下一个元素。
|
void |
remove()
从底层集合中删除此迭代器返回的最后一个元素(可选操作)。
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public boolean hasNext()
Iterator
复制
true
。
(换句话说,返回true
如果Iterator.next()
会返回一个元素,而不是抛出一个异常。)
public void remove()
Iterator
复制
Iterator.next()
一次。
如果底层集合在迭代过程中以任何方式进行修改而不是通过调用此方法,则迭代器的行为是未指定的。
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.