Class Sieved<E>

  • All Implemented Interfaces:
    java.lang.Iterable<E>

    public final class Sieved<E>
    extends java.lang.Object
    implements java.lang.Iterable<E>
    Iterable decorator which iterates all elements of the delegate which satisfy a given Predicate.
    • Constructor Summary

      Constructors 
      Constructor Description
      Sieved​(Predicate<? super E> predicate, java.lang.Iterable<E> delegate)  
    • Method Summary

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

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

        forEach, spliterator
    • Constructor Detail

      • Sieved

        public Sieved​(Predicate<? super E> predicate,
                      java.lang.Iterable<E> delegate)
    • Method Detail

      • iterator

        public java.util.Iterator<E> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<E>