diva.util
Class ProxyIterator

java.lang.Object
  extended by diva.util.IteratorAdapter
      extended by diva.util.ProxyIterator
All Implemented Interfaces:
java.util.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:
$Id: ProxyIterator.java 38798 2005-07-08 20:00:01Z cxh $
Author:
Michael Shilman

Field Summary
private  java.util.Iterator _iterator
           
 
Constructor Summary
ProxyIterator(java.util.Iterator i)
           
 
Method Summary
 boolean hasNext()
           
 java.lang.Object next()
           
 
Methods inherited from class diva.util.IteratorAdapter
remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_iterator

private java.util.Iterator _iterator
Constructor Detail

ProxyIterator

public ProxyIterator(java.util.Iterator i)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator
Overrides:
hasNext in class IteratorAdapter

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator
Overrides:
next in class IteratorAdapter