Interface QtConcurrent.ReduceFunctor<U,T>

All Superinterfaces:
Serializable
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.ReduceFunctor<U,T> extends Serializable
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
    reduce(U result, T intermediate)
    Performs a reduce operation on intermediate.
  • Method Details

    • reduce

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