org.apache.commons.collections.iterators
Class AbstractIteratorDecorator
java.lang.Object
org.apache.commons.collections.iterators.AbstractIteratorDecorator
- Iterator
public class AbstractIteratorDecorator
extends java.lang.Object
implements Iterator
Provides basic behaviour for decorating an iterator with extra functionality.
All methods are forwarded to the decorated iterator.
$Revision: 1.4 $ $Date: 2004/02/18 00:59:50 $- James Strachan
- Stephen Colebourne
protected Iterator | iterator - The iterator being decorated
|
iterator
protected final Iterator iterator
The iterator being decorated
AbstractIteratorDecorator
public AbstractIteratorDecorator(Iterator iterator)
Constructor that decorates the specified iterator.
iterator
- the iterator to decorate, must not be null
getIterator
protected Iterator getIterator()
Gets the iterator being decorated.
hasNext
public boolean hasNext()
remove
public void remove()
Copyright © 2001-2006 Apache Software Foundation. All Rights Reserved.