Class Expanded<T>

  • All Implemented Interfaces:
    java.lang.Iterable<T>

    public final class Expanded<T>
    extends DelegatingIterable<T>
    A decorator for Iterable which expands each element into an Iterable (using the given function) and joins the results.

    This resembles what other frameworks call "flatmap".

    • Constructor Summary

      Constructors 
      Constructor Description
      Expanded​(Function<? super V,​? extends java.lang.Iterable<? extends T>> function, java.lang.Iterable<V> delegate)  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.Iterable

        forEach, spliterator
    • Constructor Detail

      • Expanded

        public Expanded​(Function<? super V,​? extends java.lang.Iterable<? extends T>> function,
                        java.lang.Iterable<V> delegate)