Class NodeListIterator
- java.lang.Object
-
- org.apache.commons.collections4.iterators.NodeListIterator
-
-
Constructor Summary
Constructors Constructor Description NodeListIterator(Node node)
Convenience constructor, which creates a new NodeListIterator from the specified node's childNodes.NodeListIterator(NodeList nodeList)
Constructor, that creates a new NodeListIterator from the specifiedorg.w3c.NodeList
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
Node
next()
void
remove()
ThrowsUnsupportedOperationException
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
NodeListIterator
public NodeListIterator(Node node)
Convenience constructor, which creates a new NodeListIterator from the specified node's childNodes.- Parameters:
node
- Node, who's child nodes are wrapped by this class. Must not be null- Throws:
NullPointerException
- if node is null
-
NodeListIterator
public NodeListIterator(NodeList nodeList)
Constructor, that creates a new NodeListIterator from the specifiedorg.w3c.NodeList
- Parameters:
nodeList
- node list, which is wrapped by this class. Must not be null- Throws:
NullPointerException
- if nodeList is null
-
-
Method Detail
-
remove
public void remove()
ThrowsUnsupportedOperationException
.- Specified by:
remove
in interfaceIterator<Node>
- Throws:
UnsupportedOperationException
- always
-
-