diva.util
Class CompoundIterator
java.lang.Object
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)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CompoundIterator
public CompoundIterator(Iterator first,
Iterator second)
- Create a new iterator
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.