net.sf.mmapps.commons.bridge
Class GenericNodeIterator

java.lang.Object
  extended by net.sf.mmapps.commons.bridge.GenericNodeIterator
All Implemented Interfaces:
java.util.Iterator, java.util.ListIterator, org.mmbase.bridge.NodeIterator

public class GenericNodeIterator
extends java.lang.Object
implements org.mmbase.bridge.NodeIterator

Generic Iterator to use with MMbase node lists

Version:
$Id: GenericNodeIterator.java,v 1.1 2006/04/06 10:00:34 nklasens Exp $
Author:
Nico Klasens (Finalist IT Group)

Constructor Summary
GenericNodeIterator(java.util.ListIterator iter)
           
 
Method Summary
 void add(java.lang.Object o)
           
 boolean hasNext()
           
 boolean hasPrevious()
           
 java.lang.Object next()
           
 int nextIndex()
           
 org.mmbase.bridge.Node nextNode()
           
 java.lang.Object previous()
           
 int previousIndex()
           
 org.mmbase.bridge.Node previousNode()
           
 void remove()
           
 void set(java.lang.Object o)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericNodeIterator

public GenericNodeIterator(java.util.ListIterator iter)
Parameters:
iter -
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator
Specified by:
hasNext in interface java.util.ListIterator
See Also:
Iterator.hasNext()

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator
Specified by:
next in interface java.util.ListIterator
See Also:
Iterator.next()

hasPrevious

public boolean hasPrevious()
Specified by:
hasPrevious in interface java.util.ListIterator
See Also:
ListIterator.hasPrevious()

previous

public java.lang.Object previous()
Specified by:
previous in interface java.util.ListIterator
See Also:
ListIterator.previous()

nextIndex

public int nextIndex()
Specified by:
nextIndex in interface java.util.ListIterator
See Also:
ListIterator.nextIndex()

previousIndex

public int previousIndex()
Specified by:
previousIndex in interface java.util.ListIterator
See Also:
ListIterator.previousIndex()

set

public void set(java.lang.Object o)
Specified by:
set in interface java.util.ListIterator
See Also:
ListIterator.set(java.lang.Object)

add

public void add(java.lang.Object o)
Specified by:
add in interface java.util.ListIterator
See Also:
ListIterator.add(java.lang.Object)

remove

public void remove()
Specified by:
remove in interface java.util.Iterator
Specified by:
remove in interface java.util.ListIterator
See Also:
Iterator.remove()

nextNode

public org.mmbase.bridge.Node nextNode()
Specified by:
nextNode in interface org.mmbase.bridge.NodeIterator
See Also:
NodeIterator.nextNode()

previousNode

public org.mmbase.bridge.Node previousNode()
Specified by:
previousNode in interface org.mmbase.bridge.NodeIterator
See Also:
NodeIterator.previousNode()


Copyright © 2003-2006 mmapps. All Rights Reserved.