Class MaxOperator<T extends java.lang.Comparable<T>>

  • Type Parameters:
    T - type of the incoming items.
    All Implemented Interfaces:
    java.util.function.Function<Multi<T>,​Multi<T>>

    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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • Constructor Detail

      • MaxOperator

        public MaxOperator()
    • Method Detail

      • apply

        public Multi<T> apply​(Multi<T> multi)
        Specified by:
        apply in interface java.util.function.Function<Multi<T extends java.lang.Comparable<T>>,​Multi<T extends java.lang.Comparable<T>>>