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: 155406 $ $Date: 2005-02-26 12:55:26 +0000 (Sat, 26 Feb 2005) $- 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-2008 Apache Software Foundation. All Rights Reserved.