Package diva.util
Class IteratorAdapter
- java.lang.Object
-
- 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.IteratorAn iterator that implements the Iterator, intended for subclassing so that you don't have to provide the remove() method all the time....- Version:
- $Id$
- Author:
- John Reekie, Michael Shilman
-
-
Constructor Summary
Constructors Constructor Description IteratorAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()java.lang.Objectnext()voidremove()
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator
-
next
public java.lang.Object next() throws java.util.NoSuchElementException- Specified by:
nextin interfacejava.util.Iterator- Throws:
java.util.NoSuchElementException
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator
-
-