Class Predicate.PredicateIterable<T>

  • All Implemented Interfaces:
    java.lang.Iterable<T>
    Enclosing interface:
    Predicate<T>

    public static class Predicate.PredicateIterable<T>
    extends java.lang.Object
    implements java.lang.Iterable<T>
    • Constructor Detail

      • PredicateIterable

        public PredicateIterable​(java.lang.Iterable<T> iterable,
                                 Predicate<T> predicate)
    • Method Detail

      • set

        public void set​(java.lang.Iterable<T> iterable,
                        Predicate<T> predicate)
      • iterator

        public java.util.Iterator<T> iterator()
        Returns an iterator. Remove is supported.

        If Collections.allocateIterators is false, the same iterator instance is returned each time this method is called. Use the Predicate.PredicateIterator constructor for nested or multithreaded iteration.

        Specified by:
        iterator in interface java.lang.Iterable<T>