官术网_书友最值得收藏!

UML class diagram

Java's Iterator interface is part of the java.util package and is a member of the Java collections framework. As you can see from the UML class diagram, the interface includes four methods:

UML class diagram i nterface Iterator

The forEachRemaining() method iterates through an object's elements. The hasNext() method returns a Boolean value depending on whether there are more iterations to go through. The next() method simply returns the next sequential iteration element. The final method, remove(), removes that last iterated element from the object.

主站蜘蛛池模板: 会东县| 怀宁县| 民权县| 宜宾县| 西藏| 沙坪坝区| 铁力市| 柳河县| 邛崃市| 江华| 望奎县| 宝兴县| 鹿泉市| 兴国县| 泸水县| 阿拉善左旗| 青河县| 迁安市| 萝北县| 库车县| 顺昌县| 正阳县| 商城县| 郓城县| 潍坊市| 武陟县| 韶关市| 成都市| 乐业县| 台江县| 祥云县| 衡南县| 乳山市| 汾阳市| 定安县| 开封市| 科技| 平阳县| 新余市| 旬邑县| 兴山县|