public abstract class AbstractIteratorDecorator<E> extends AbstractUntypedIteratorDecorator<E,E>
All methods are forwarded to the decorated iterator.
Modifier | Constructor and Description |
---|---|
protected |
AbstractIteratorDecorator(Iterator<E> iterator)
Constructor that decorates the specified iterator.
|
Modifier and Type | Method and Description |
---|---|
E |
next() |
getIterator, hasNext, remove
protected AbstractIteratorDecorator(Iterator<E> iterator)
iterator
- the iterator to decorate, must not be nullIllegalArgumentException
- if the collection is nullpublic E next()
Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.