Class MappingIterable<I,​O>

  • Type Parameters:
    I - The type to map.
    O - The type to map to.
    All Implemented Interfaces:
    Iterable<O>

    public class MappingIterable<I,​O>
    extends Object
    implements Iterable<O>
    This class is an iterable which lazily maps an input type to an output type from a provided iterable.
    See Also:
    Iterable
    • Constructor Detail

      • MappingIterable

        public MappingIterable​(Function<I,​O> mapper,
                               Iterable<I> original)
        Constructs a mapping iterable.
        Parameters:
        mapper - The function to map the original iterable to the desired type.
        original - The original iterable to map.