Iterator的一个方法,实在看不懂是什么意思,谁能给翻译一下

PiouseLeo PiouseLeo 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
Iterator的一个方法,实在看不懂是什么意思,谁能给翻译一下(我英语还行,只是无法理解这个)

remove
void remove()
Removes from the underlying collection the last element returned by the iterator (optional operation). This method can be called only once per call to next. The behavior of an iterator is unspecified if the underlying collection is modified while the iteration is in progress in any way other than by calling this method.

Throws:
UnsupportedOperationException - if the remove operation is not supported by this Iterator.
IllegalStateException - if the next method has not yet been called, or the remove method has already been called after the last call to the next method
...全文

相关推荐

评论
收藏 已收藏
分享
返回顶部
PiouseLeo
Java SE 62,621 成员 307,251 内容