Class Table.Remover<R>

    • Constructor Summary

      Constructors 
      Constructor Description
      Remover​(boolean nullify, int max_results, java.util.function.Predicate<T> filter, java.util.function.Supplier<R> creator, java.util.function.BiConsumer<R,​T> accumulator)  
    • Field Detail

      • nullify

        protected final boolean nullify
      • max_results

        protected final int max_results
      • num_results

        protected int num_results
      • filter

        protected final java.util.function.Predicate<T> filter
      • result

        protected R result
      • result_creator

        protected java.util.function.Supplier<R> result_creator
      • result_accumulator

        protected java.util.function.BiConsumer<R,​T> result_accumulator
    • Constructor Detail

      • Remover

        public Remover​(boolean nullify,
                       int max_results,
                       java.util.function.Predicate<T> filter,
                       java.util.function.Supplier<R> creator,
                       java.util.function.BiConsumer<R,​T> accumulator)
    • Method Detail

      • getResult

        public R getResult()
      • visit

        public boolean visit​(long seqno,
                             T element,
                             int row,
                             int column)
        Description copied from interface: Table.Visitor
        Specified by:
        visit in interface Table.Visitor<R>
        Parameters:
        seqno - The current seqno
        element - The element at matrix[row][column]
        row - The current row
        column - The current column
        Returns:
        True if we should continue the iteration, false if we should break out of the iteration