Package org.dmfs.jems2.iterable
Class DelegatingIterable<E>
- java.lang.Object
-
- org.dmfs.jems2.iterable.DelegatingIterable<E>
-
- All Implemented Interfaces:
java.lang.Iterable<E>
- Direct Known Subclasses:
Ascending,Descending,Distinct,Expanded,First,Mapped,Numbered,Paired,PresentValues,Zipped
public abstract class DelegatingIterable<E> extends java.lang.Object implements java.lang.Iterable<E>An abstractIterablewhich delegates all method calls to another givenIterable.This class is abstract and is meant to be a convenient way of composing
Iterables despite the lack of native support for the decoration pattern in Java.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDelegatingIterable(java.lang.Iterable<E> delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Iterator<E>iterator()
-