Class FilteringIterable<T>

  • Type Parameters:
    T - the type being iterated
    All Implemented Interfaces:
    Iterable<T>

    public class FilteringIterable<T>
    extends Object
    implements Iterable<T>
    An Iterable that filters elements produced by another Iterable based on a specified Remote.Predicate.
    Since:
    21.12
    Author:
    bo
    • Constructor Detail

      • FilteringIterable

        public FilteringIterable​(Iterable<T> iterable,
                                 com.tangosol.util.function.Remote.Predicate<? super T> predicate)
        Constructs a FilteringIterable.
        Parameters:
        iterable - the Iterable producing elements to filter
        predicate - the Remote.Predicate that must be satisfied