Class MinByProcedure<T,V extends Comparable<? super V>>

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

public class MinByProcedure<T,V extends Comparable<? super V>> 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

    • MinByProcedure

      public MinByProcedure(Function<? super T,? extends V> function)
  • Method Details

    • isVisitedAtLeastOnce

      public boolean isVisitedAtLeastOnce()
    • getResult

      public T getResult()
    • getResultOptional

      public Optional<T> getResultOptional()
    • value

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