JavaTM 2 Platform
Standard Ed. 6

java.beans.beancontext
类 BeanContextSupport.BCSIterator

java.lang.Object
  继承者 java.beans.beancontext.BeanContextSupport.BCSIterator
所有已实现的接口:
Iterator
正在封闭类:
BeanContextSupport

protected static final class BeanContextSupport.BCSIterator
extends Object
implements Iterator

受保护的最终子类,它封装一个迭代器但实现无操作 remove() 方法。


方法摘要
 boolean hasNext()
          如果仍有元素可以迭代,则返回 true
 Object next()
          返回迭代的下一个元素。
 void remove()
          从迭代器指向的 collection 中移除迭代器返回的最后一个元素(可选操作)。
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

方法详细信息

hasNext

public boolean hasNext()
从接口 Iterator 复制的描述
如果仍有元素可以迭代,则返回 true。(换句话说,如果 next 返回了元素而不是抛出异常,则返回 true)。

指定者:
接口 Iterator 中的 hasNext
返回:
如果迭代器具有多个元素,则返回 true

next

public Object next()
从接口 Iterator 复制的描述
返回迭代的下一个元素。

指定者:
接口 Iterator 中的 next
返回:
迭代的下一个元素。

remove

public void remove()
从接口 Iterator 复制的描述
从迭代器指向的 collection 中移除迭代器返回的最后一个元素(可选操作)。每次调用 next 只能调用一次此方法。如果进行迭代时用调用此方法之外的其他方式修改了该迭代器所指向的 collection,则迭代器的行为是不确定的。

指定者:
接口 Iterator 中的 remove

JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only