Class ProcEnvelope<X>

  • Type Parameters:
    X - Type of input
    All Implemented Interfaces:
    Proc<X>
    Direct Known Subclasses:
    ProcOf

    public abstract class ProcEnvelope<X>
    extends Object
    implements Proc<X>
    Envelope for Proc.

    There is no thread-safety guarantee.

    Since:
    0.50
    • Constructor Detail

      • ProcEnvelope

        public ProcEnvelope​(Proc<? super X> origin)
        Ctor.
        Parameters:
        origin - The procedure
    • Method Detail

      • exec

        public final void exec​(X input)
                        throws Exception
        Description copied from interface: Proc
        Execute it.
        Specified by:
        exec in interface Proc<X>
        Parameters:
        input - The argument
        Throws:
        Exception - If fails