Interface QtConcurrent.ReducedFunctor<U,​T>

Enclosing class:
QtConcurrent
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface
public static interface QtConcurrent.ReducedFunctor<U,​T>
Implement this interface in order to perform a reduce operation.

The reduce method will be called once per intermediate result (the result of the mapping of the data) and the very first time the reduce() method is called for the particular data set, the result is set to the returned value of the defaultResult() method.

  • Method Summary

    Modifier and Type Method Description
    default U defaultResult()  
    void reduce​(U result, T intermediate)
    Performs a reduce operation on intermediate.
  • Method Details

    • defaultResult

      default U defaultResult()
    • reduce

      void reduce​(U result, T intermediate)
      Performs a reduce operation on intermediate. result is the result of the reduction.