Package reactor. kotlin. extra. math
Functions
General purpose extension function to compute the average of all values emitted by a Flux of Number and return it as a Mono. The resultant Mono will have the same Number type as the input Flux
Extension to compute the BigDecimal average of all values emitted by a Flux of Number and return it as a Mono of BigDecimal.
Extension to compute the BigInteger average of all values emitted by a Flux of Number and return it as a Mono of BigInteger.
Extension to find the highest value in a Flux of Comparable values and return it as a Mono of T.
Extension to find the highest value in a Flux and return it as a Mono. The highest value is defined by comparisons made using a provided Comparator.
Extension to find the highest value in a Flux and return it as a Mono. The highest value is defined by comparisons made using a provided function that behaves like a Comparator.
Extension to find the lowest value in a Flux of Comparable values and return it as a Mono of T.
Extension to find the lowest value in a Flux and return it as a Mono. The lowest value is defined by comparisons made using a provided Comparator.
Extension to find the lowest value in a Flux and return it as a Mono. The lowest value is defined by comparisons made using a provided function that behaves like a Comparator.
Extension to compute the BigDecimal sum of all values emitted by a Flux of Number and return it as a Mono of BigDecimal.
Extension to compute the BigInteger sum of all values emitted by a Flux of Number and return it as a Mono of BigInteger.