Class MaxProcedure<T>

  • All Implemented Interfaces:
    java.io.Serializable, java.util.function.Consumer<T>, Procedure<T>

    public class MaxProcedure<T>
    extends java.lang.Object
    implements Procedure<T>
    Implementation of Procedure that holds on to the minimum element seen so far, determined by the Function.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      MaxProcedure()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T getResult()  
      java.util.Optional<T> getResultOptional()  
      void value​(T each)  
      • 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.Consumer

        andThen
      • Methods inherited from interface org.eclipse.collections.api.block.procedure.Procedure

        accept
    • Field Detail

      • visitedAtLeastOnce

        protected boolean visitedAtLeastOnce
      • result

        protected T result
    • Constructor Detail

      • MaxProcedure

        public MaxProcedure()
    • Method Detail

      • getResult

        public T getResult()
      • getResultOptional

        public java.util.Optional<T> getResultOptional()
      • value

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