Class FilterIterator<T>

  • Type Parameters:
    T -
    All Implemented Interfaces:
    java.util.Iterator<T>

    public class FilterIterator<T>
    extends FilterIterator<T>
    Deprecated.
    Iterator filtering out items which do not match a given predicate.
    • Constructor Summary

      Constructors 
      Constructor Description
      FilterIterator​(java.util.Iterator<T> tIterator, Predicate predicate)
      Deprecated.
      Create a new filtered iterator based on the given iterator.
    • Method Summary

      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Constructor Detail

      • FilterIterator

        public FilterIterator​(java.util.Iterator<T> tIterator,
                              Predicate predicate)
        Deprecated.
        Create a new filtered iterator based on the given iterator.
        Parameters:
        tIterator - iterator to filter
        predicate - only item matching this predicate are included