Package org.dmfs.jems2.iterator
Class DelegatingIterator<E>
- java.lang.Object
-
- org.dmfs.jems2.iterator.BaseIterator<E>
-
- org.dmfs.jems2.iterator.DelegatingIterator<E>
-
- All Implemented Interfaces:
java.util.Iterator<E>
public abstract class DelegatingIterator<E> extends BaseIterator<E>
An abstractIteratorwhich delegates all method calls to another givenIterator.This class is abstract and is meant to be a convenient way of composing
Iterators despite the lack of native support for the decoration pattern in Java.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDelegatingIterator(java.util.Iterator<E> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Enext()-
Methods inherited from class org.dmfs.jems2.iterator.BaseIterator
equals, hashCode, remove
-
-