Interface Procedure<T>

All Superinterfaces:
Consumer<T>, Serializable
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface Procedure<T> extends Consumer<T>, Serializable
A Procedure is a single argument lambda which has no return argument.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    accept(T each)
     
    void
    value(T each)
     

    Methods inherited from interface java.util.function.Consumer

    andThen
  • Method Details

    • value

      void value(T each)
    • accept

      default void accept(T each)
      Specified by:
      accept in interface Consumer<T>