Class LazySelectIterable<TIn,​TOut>

java.lang.Object
de.renebergelt.quiterables.iterators.LazySelectIterable<TIn,​TOut>
Type Parameters:
TIn - Source type
TOut - Target type
All Implemented Interfaces:
Iterable<TOut>

public class LazySelectIterable<TIn,​TOut> extends Object implements Iterable<TOut>
Iterable which converts the elements of a source iterable of type TIn to elements of type TOut using a Selector function
  • Constructor Details

    • LazySelectIterable

      public LazySelectIterable(Iterable<TIn> _wrapped, Selector<TIn,​TOut> _selectorFunc)
      Create a new lazy select iterable which wraps the given iterable
      Parameters:
      _wrapped - The wrapped iterable
      _selectorFunc - Function to transform elements of the original iterable
  • Method Details