org.mmbase.bridge
Interface NodeIterator

Package class diagram package NodeIterator
All Superinterfaces:
Iterator<Node>, ListIterator<Node>
All Known Subinterfaces:
TreeIterator
All Known Implementing Classes:
BridgeCollections.UnmodifiableNodeIterator, CollectionNodeList.BasicNodeIterator, HugeNodeListIterator, SimpleNodeList.SimpleNodeIterator, TreeList.TreeItr

public interface NodeIterator
extends ListIterator<Node>

An iterator for Nodes, provider nextNode() and previousNode(). Note that since MMBase-1.9/Java 1.5, this simply implements ListIterator<Node> and ListIterator.next() and ListIterator.previous() don't require casting either.

Version:
$Id: NodeIterator.java 44632 2011-01-06 22:19:55Z michiel $
Author:
Pierre van Rooden

Method Summary
 Node nextNode()
          Returns the next element in the iterator as a Node
 Node previousNode()
          Returns the previous element in the iterator as a Node
 
Methods inherited from interface java.util.ListIterator
add, hasNext, hasPrevious, next, nextIndex, previous, previousIndex, remove, set
 

Method Detail

nextNode

Node nextNode()
Returns the next element in the iterator as a Node

Returns:
next Node

previousNode

Node previousNode()
Returns the previous element in the iterator as a Node

Returns:
previous Node
Since:
MMBase-1.7


MMBase2 Bridge 2.0-SNAPSHOT - 2013-03-30T06:34