Top Description Constructors Methods
org.apache.commons.collections4.iterators

public abstract Class AbstractIteratorDecorator<E>

extends AbstractUntypedIteratorDecorator<E, E>
Class Inheritance
Known Direct Subclasses
org.apache.commons.collections4.iterators.SkippingIterator, org.apache.commons.collections4.list.SetUniqueList.SetListIterator, org.apache.commons.collections4.map.AbstractInputCheckedMapDecorator.EntrySetIterator, org.apache.commons.collections4.map.UnmodifiableEntrySet.UnmodifiableEntrySetIterator, org.apache.commons.collections4.multimap.AbstractMultiValuedMap.AsMap.AsMapEntrySetIterator, org.apache.commons.collections4.multiset.AbstractMapMultiSet.UniqueSetIterator, org.apache.commons.collections4.set.ListOrderedSet.OrderedSetIterator, org.apache.commons.collections4.bidimap.AbstractDualBidiMap.KeySetIterator, org.apache.commons.collections4.bidimap.AbstractDualBidiMap.ValuesIterator, org.apache.commons.collections4.bidimap.AbstractDualBidiMap.EntrySetIterator
Imports
java.util.Iterator

Provides basic behaviour for decorating an iterator with extra functionality.

All methods are forwarded to the decorated iterator.

Since
3.0

Constructor Summary

AccessConstructor and Description
protected
AbstractIteratorDecorator(final Iterator<E>
the iterator to decorate, must not be null
iterator
)

Constructor that decorates the specified iterator.

Method Summary

Modifier and TypeMethod and Description
public E
next()

Implements java.util.Iterator.next.

Returns the next element in the iteration.
Inherited from org.apache.commons.collections4.iterators.AbstractUntypedIteratorDecorator:
getIteratorhasNextremove

Constructor Detail

AbstractIteratorDecoratorback to summary
protected AbstractIteratorDecorator(final Iterator<E> iterator)

Constructor that decorates the specified iterator.

Parameters
iterator:Iterator<E>

the iterator to decorate, must not be null

Exceptions
NullPointerException:
if the iterator is null

Method Detail

nextback to summary
public E next()

Implements java.util.Iterator.next.

Doc from java.util.Iterator.next.

Returns the next element in the iteration.

Returns:E

the next element in the iteration

Annotations
@Override