Class FilteredRangeIterator

    • Constructor Detail

      • FilteredRangeIterator

        public FilteredRangeIterator​(Iterator<?> iterator,
                                     Predicate predicate,
                                     int bufferSize)
        Creates a new filtered iterator.
        Parameters:
        iterator - underlying iterator
        predicate -
        bufferSize -
      • FilteredRangeIterator

        public FilteredRangeIterator​(Iterator<?> iterator,
                                     Predicate predicate)
        Creates a new filtered iterator with the default pre-fetch buffer size.
        Parameters:
        iterator - underlying iterator
        predicate - predicate used for filtering
      • FilteredRangeIterator

        public FilteredRangeIterator​(Iterator<?> iterator)
        Creates a pre-fetching decorator for the given iterator. This constructor is mostly useful when it is desirable to use the pre-fetching feature to automatically
        Parameters:
        iterator - underlying iterator