diva.util
Class IteratorAdapter

java.lang.Object
  extended by diva.util.IteratorAdapter
All Implemented Interfaces:
java.util.Iterator
Direct Known Subclasses:
ArrayIterator, FilteredIterator, IteratorIterator, NullArrayIterator, NullIterator, ProxyIterator, ReverseIterator, UnitIterator

public class IteratorAdapter
extends java.lang.Object
implements java.util.Iterator

An iterator that implements the Iterator, intended for subclassing so that you don't have to provide the remove() method all the time....

Version:
$Id: IteratorAdapter.java 57040 2010-01-27 20:52:32Z cxh $
Author:
John Reekie, Michael Shilman

Constructor Summary
IteratorAdapter()
           
 
Method Summary
 boolean hasNext()
           
 java.lang.Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IteratorAdapter

public IteratorAdapter()
Method Detail

hasNext

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

next

public java.lang.Object next()
                      throws java.util.NoSuchElementException
Specified by:
next in interface java.util.Iterator
Throws:
java.util.NoSuchElementException

remove

public void remove()
Specified by:
remove in interface java.util.Iterator