Class Iterables.CollectingIterable<A,​B>

  • All Implemented Interfaces:
    java.lang.Iterable<B>
    Enclosing class:
    Iterables

    static class Iterables.CollectingIterable<A,​B>
    extends Iterables.IterableToString<B>
    CollectingIterable, filters and transforms in one.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.Iterable<? extends A> delegate  
      private java.util.function.Function<? super A,​Option<B>> partial  
    • Constructor Summary

      Constructors 
      Constructor Description
      CollectingIterable​(java.lang.Iterable<? extends A> delegate, java.util.function.Function<? super A,​Option<B>> partial)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Iterator<B> iterator()  
      • Methods inherited from class java.lang.Object

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

        forEach, spliterator
    • Field Detail

      • delegate

        private final java.lang.Iterable<? extends A> delegate
      • partial

        private final java.util.function.Function<? super A,​Option<B>> partial
    • Constructor Detail

      • CollectingIterable

        CollectingIterable​(java.lang.Iterable<? extends A> delegate,
                           java.util.function.Function<? super A,​Option<B>> partial)
    • Method Detail

      • iterator

        public java.util.Iterator<B> iterator()