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.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$
- Author:
- John Reekie, Michael Shilman
-
-
Constructor Summary
Constructors Constructor Description IteratorAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
java.lang.Object
next()
void
remove()
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator
-
next
public java.lang.Object next() throws java.util.NoSuchElementException
- Specified by:
next
in interfacejava.util.Iterator
- Throws:
java.util.NoSuchElementException
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator
-
-