intarsys runtime library

de.intarsys.tools.collection
Class NestedIterator

java.lang.Object
  extended by de.intarsys.tools.collection.NestedIterator
All Implemented Interfaces:
Iterator

public class NestedIterator
extends Object
implements Iterator

An iterator to enumerate sequentially the elements in a hierarchical collection.

Every node that implements IIteratorSupport itself is enumerated instead of beeing returned imediately.


Constructor Summary
NestedIterator(Iterator i)
           
NestedIterator(List l)
           
 
Method Summary
 boolean hasNext()
           
 Object next()
           
 void remove()
           
static void test1()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NestedIterator

public NestedIterator(Iterator i)

NestedIterator

public NestedIterator(List l)
Method Detail

test1

public static void test1()

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator

next

public Object next()
Specified by:
next in interface Iterator

remove

public void remove()
Specified by:
remove in interface Iterator

intarsys runtime library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.