Class FilterIterator<T>

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

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

      • FilterIterator

        public FilterIterator​(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