Class LazyWhereIterable<T>

java.lang.Object
de.renebergelt.quiterables.iterators.LazyWhereIterable<T>
Type Parameters:
T - Type of the elements in this Iterable
All Implemented Interfaces:
Iterable<T>

public class LazyWhereIterable<T> extends Object implements Iterable<T>
Iterable which returns elements matching a predicate using lazy evaluation
Author:
René Bergelt
  • Constructor Details

    • LazyWhereIterable

      public LazyWhereIterable(Iterable<T> _wrapped, Predicate<T> _predicate)
      Create a new lazy where iterable which wraps the given iterable
      Parameters:
      _wrapped - The wrapped iterable
      _predicate - Condition to include an element
  • Method Details