Class MinProcedure<T>

All Implemented Interfaces:
Serializable, Consumer<T>, Procedure<T>

public class MinProcedure<T> extends Object implements Procedure<T>
Implementation of Procedure that holds on to the minimum element seen so far, determined by the Function.
See Also:
  • Constructor Details

    • MinProcedure

      public MinProcedure()
  • Method Details

    • getResult

      public T getResult()
    • getResultOptional

      public Optional<T> getResultOptional()
    • value

      public void value(T each)
      Specified by:
      value in interface Procedure<T>