Package generic

Class FilteredIterator<T>

java.lang.Object
generic.FilteredIterator<T>
All Implemented Interfaces:
Iterable<T>, Iterator<T>

public class FilteredIterator<T> extends Object implements Iterator<T>, Iterable<T>
  • Constructor Details

    • FilteredIterator

      public FilteredIterator(Iterator<T> it, Predicate<T> filter)
      Construct a new FilteredIterator.
      Parameters:
      it - the iterator to filter
      filter - the filter on T
  • Method Details