Class DelegatingIterable<E>

java.lang.Object
org.dmfs.jems2.iterable.DelegatingIterable<E>
All Implemented Interfaces:
Iterable<E>
Direct Known Subclasses:
Ascending, Descending, Distinct, Expanded, First, Mapped, Numbered, Paired, PresentValues, Zipped

public abstract class DelegatingIterable<E> extends Object implements Iterable<E>
An abstract Iterable which delegates all method calls to another given Iterable.

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 Details

    • DelegatingIterable

      protected DelegatingIterable(Iterable<E> delegate)
  • Method Details