Interface Filterator<T>

All Superinterfaces:
Iterator<T>
All Known Implementing Classes:
AbstractFlowScanner, DepthFirstScanner, ForkScanner, LinearBlockHoppingScanner, LinearScanner

public interface Filterator<T> extends Iterator<T>
Iterator that may be navigated through a filtered wrapper.

As a rule, assume that returned Filterators wrap an iterator and pass calls to it. Thus the iterator position will change if next() is called on the filtered versions. Note also: you may filter a filterator, if needed.

Author:
Sam Van Oort
  • Method Summary

    Modifier and Type
    Method
    Description
    filter(com.google.common.base.Predicate<T> matchCondition)
    Returns a filtered view of the iterator, which calls the iterator until matches are found

    Methods inherited from interface java.util.Iterator

    forEachRemaining, hasNext, next, remove
  • Method Details

    • filter

      @NonNull Filterator<T> filter(@NonNull com.google.common.base.Predicate<T> matchCondition)
      Returns a filtered view of the iterator, which calls the iterator until matches are found