diva.util
Class CompoundIterator

java.lang.Object
  extended by diva.util.CompoundIterator
All Implemented Interfaces:
Iterator

public class CompoundIterator
extends Object
implements Iterator

An iterator over two iterators.

Version:
$Revision: 1.4 $
Author:
John Reekie (johnr@eecs.berkeley.edu)

Constructor Summary
CompoundIterator(Iterator first, Iterator second)
          Create a new iterator
 
Method Summary
 boolean hasNext()
           
 Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CompoundIterator

public CompoundIterator(Iterator first,
                        Iterator second)
Create a new iterator

Method Detail

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


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.