fun <T : Comparable<T>> Flux<T>.min(): Mono<T>
Extension to find the lowest value in a Flux of Comparable values and return it as a Mono of T.
Author
Simon Baslé
Since
1.0.0
fun <T> Flux<T>.min(comp: Comparator<T>): Mono<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.
comp
- The Comparator to use
Author
Simon Baslé
Since
1.0.0
fun <T> Flux<T>.min(comp: (T, T) -> Int): Mono<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 function that behaves like a Comparator.
comp
- The comparison function to use (similar to a Comparator)
Author
Simon Baslé
Since
1.0.0