Class BiProcEnvelope<X,​Y>

  • Type Parameters:
    X - Type of input
    Y - Type of output
    All Implemented Interfaces:
    BiProc<X,​Y>
    Direct Known Subclasses:
    BiProcOf

    public abstract class BiProcEnvelope<X,​Y>
    extends Object
    implements BiProc<X,​Y>
    Envelope for BiProc.

    There is no thread-safety guarantee.

    Since:
    0.50
    • Constructor Detail

      • BiProcEnvelope

        public BiProcEnvelope​(BiProc<? super X,​? super Y> origin)
        Ctor.
        Parameters:
        origin - The procedure
    • Method Detail

      • exec

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