diva.util
Class IteratorAdapter
java.lang.Object
diva.util.IteratorAdapter
- All Implemented Interfaces:
- Iterator
- Direct Known Subclasses:
- ArrayIterator, FilteredIterator, IteratorIterator, LightweightGraph.TraversalIterator, NullArrayIterator, NullIterator, ProxyIterator, ReverseIterator, UnitIterator
public class IteratorAdapter
- extends Object
- implements 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:
- $Revision: 1.4 $
- Author:
- John Reekie (johnr@eecs.berkeley.edu), Michael Shilman (michaels@eecs.berkeley.edu)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IteratorAdapter
public IteratorAdapter()
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator
next
public Object next()
- Specified by:
next
in interface Iterator
remove
public void remove()
- Specified by:
remove
in interface Iterator
Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.