Class AbstractUntypedIteratorDecorator<I,O> 
java.lang.Object
org.apache.commons.collections4.iterators.AbstractUntypedIteratorDecorator<I,O> 
- Type Parameters:
- I- the type of the iterator being decorated.
- O- the type of elements returned by this iterator.
- All Implemented Interfaces:
- Iterator<O>
- Direct Known Subclasses:
- AbstractIteratorDecorator
Provides basic behavior for decorating an iterator with extra functionality without committing the generic type of the Iterator implementation.
 
All methods are forwarded to the decorated iterator.
- Since:
- 4.0
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedAbstractUntypedIteratorDecorator(Iterator<I> iterator) Create a new AbstractUntypedIteratorDecorator.
- 
Method SummaryMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.IteratorforEachRemaining, next
- 
Constructor Details- 
AbstractUntypedIteratorDecoratorCreate a new AbstractUntypedIteratorDecorator.- Parameters:
- iterator- the iterator to decorate
- Throws:
- NullPointerException- if the iterator is null
 
 
- 
- 
Method Details- 
getIteratorGets the iterator being decorated.- Returns:
- the decorated iterator
 
- 
hasNext
- 
remove
 
-