Class MinOperator<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 MinOperator<T extends java.lang.Comparable<T>>
    extends java.lang.Object
    implements java.util.function.Function<Multi<T>,​Multi<T>>
    Min operator emitting the min of the emitted items from upstream. If the upstream emits a failure, the failure is propagated. It only emits the minimum if the received item is smaller than the previously emitted minimum. Note that this operator relies on Comparable.
    • Constructor Summary

      Constructors 
      Constructor Description
      MinOperator()  
    • 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

      • MinOperator

        public MinOperator()
    • 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>>>