Interface Procedure<T>

  • All Superinterfaces:
    java.io.Serializable

    public interface Procedure<T>
    extends java.io.Serializable
    A Procedure is like a Function, but it doesn't produce a return value. Serializable is needed to be able to grab line number for Java 8 lambdas. Supports throwing Exception in the apply, which the java.util.function.Consumer counterpart does not.
    • Method Detail

      • apply

        void apply​(T param)
            throws java.lang.Exception
        Throws:
        java.lang.Exception