Module io.smallrye.mutiny.math
Package io.smallrye.mutiny.math
Class MaxOperator<T extends java.lang.Comparable<T>>
- java.lang.Object
-
- io.smallrye.mutiny.math.MaxOperator<T>
-
- Type Parameters:
T- type of the incoming items.
public class MaxOperator<T extends java.lang.Comparable<T>> extends java.lang.Object implements java.util.function.Function<Multi<T>,Multi<T>>
Max operator emitting the max of the emitted items from upstream. If the upstream emits a failure, the failure is propagated.It only emits the maximum if the received item is larger than the previously emitted maxmimum.
Note that this operator relies on
Comparable.
-
-
Constructor Summary
Constructors Constructor Description MaxOperator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Multi<T>apply(Multi<T> multi)
-