diva.util
Class ProxyIterator
java.lang.Object
diva.util.IteratorAdapter
diva.util.ProxyIterator
- All Implemented Interfaces:
- Iterator
public class ProxyIterator
- extends IteratorAdapter
An iterator that takes another iterator, and iterates
over it. This meant to be extended by over-riding the
next() method.
- Version:
- $Revision: 1.4 $
- Author:
- Michael Shilman (michaels@eecs.berkeley.edu)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProxyIterator
public ProxyIterator(Iterator i)
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator
- Overrides:
hasNext
in class IteratorAdapter
next
public Object next()
- Specified by:
next
in interface Iterator
- Overrides:
next
in class IteratorAdapter
Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.