Class FilteringAccumulatorWrapper<T>

java.lang.Object
ghidra.util.datastruct.FilteringAccumulatorWrapper<T>
Type Parameters:
T - the type of the accumulator
All Implemented Interfaces:
Accumulator<T>, Iterable<T>

public class FilteringAccumulatorWrapper<T> extends Object implements Accumulator<T>
A class that allows clients to wrap a given accumulator, only adding elements that pass the given filter.
  • Constructor Details

    • FilteringAccumulatorWrapper

      public FilteringAccumulatorWrapper(Accumulator<T> accumulator, Predicate<T> passesFilterPredicate)
      Constructor.
      Parameters:
      accumulator - the accumulator to pass items to
      passesFilterPredicate - the predicate that will return true for items that should be allowed to pass
  • Method Details