org.apache.commons.collections4.iterators
Class AbstractIteratorDecorator<E>
java.lang.Object
org.apache.commons.collections4.iterators.AbstractUntypedIteratorDecorator<E,E>
org.apache.commons.collections4.iterators.AbstractIteratorDecorator<E>
- All Implemented Interfaces:
- Iterator<E>
- Direct Known Subclasses:
- AbstractDualBidiMap.EntrySetIterator, AbstractDualBidiMap.KeySetIterator, AbstractDualBidiMap.ValuesIterator
public abstract class AbstractIteratorDecorator<E>
- extends AbstractUntypedIteratorDecorator<E,E>
Provides basic behaviour for decorating an iterator with extra functionality.
All methods are forwarded to the decorated iterator.
- Since:
- 3.0
- Version:
- $Id: AbstractIteratorDecorator.java 1469004 2013-04-17 17:37:03Z tn $
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractIteratorDecorator
protected AbstractIteratorDecorator(Iterator<E> iterator)
- Constructor that decorates the specified iterator.
- Parameters:
iterator
- the iterator to decorate, must not be null
- Throws:
IllegalArgumentException
- if the collection is null
next
public E next()
-
Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.