public class NodeListIter extends Object implements ResettableIter<Node>
NodeList
Constructor and Description |
---|
NodeListIter(NodeList nodeList)
构造, 根据给定
NodeList 创建NodeListIterator |
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
Node |
next() |
void |
remove()
Throws
UnsupportedOperationException . |
void |
reset()
重置,重置后可重新遍历
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public void remove()
UnsupportedOperationException
.remove
in interface Iterator<Node>
UnsupportedOperationException
- alwayspublic void reset()
ResettableIter
reset
in interface ResettableIter<Node>
Copyright © 2024. All rights reserved.