Class CheckedBiProc<X,​Y,​E extends Exception>

  • Type Parameters:
    X - Type of input
    Y - Type of input
    E - Exception's type
    All Implemented Interfaces:
    BiProc<X,​Y>

    public final class CheckedBiProc<X,​Y,​E extends Exception>
    extends Object
    implements BiProc<X,​Y>
    BiProc that throws exception of specified type.
    Since:
    0.32
    • Constructor Detail

      • CheckedBiProc

        public CheckedBiProc​(BiProc<X,​Y> original,
                             Func<Exception,​E> fnc)
        Ctor.
        Parameters:
        original - Original BiProc
        fnc - Function that wraps exceptions.
    • Method Detail

      • exec

        public void exec​(X first,
                         Y second)
                  throws E extends 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:
        E extends Exception