public class

AbstractIteratorDecorator

extends Object
implements Iterator<E>
java.lang.Object
   ↳ org.apache.commons.collections.iterators.AbstractIteratorDecorator
Known Direct Subclasses

Class Overview

Provides basic behaviour for decorating an iterator with extra functionality.

All methods are forwarded to the decorated iterator.

Summary

Fields
protected final Iterator iterator The iterator being decorated
Public Constructors
AbstractIteratorDecorator(Iterator iterator)
Constructor that decorates the specified iterator.
Public Methods
boolean hasNext()
Object next()
void remove()
Protected Methods
Iterator getIterator()
Gets the iterator being decorated.
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.util.Iterator

Fields

protected final Iterator iterator

The iterator being decorated

Public Constructors

public AbstractIteratorDecorator (Iterator iterator)

Constructor that decorates the specified iterator.

Parameters
iterator the iterator to decorate, must not be null
Throws
IllegalArgumentException if the collection is null

Public Methods

public boolean hasNext ()

public Object next ()

public void remove ()

Protected Methods

protected Iterator getIterator ()

Gets the iterator being decorated.

Returns
  • the decorated iterator