Class CheckedBiFunc<X,​Y,​Z,​E extends Exception>

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

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

      • CheckedBiFunc

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

      • apply

        public Z apply​(X first,
                       Y second)
                throws E extends Exception
        Description copied from interface: BiFunc
        Apply it.
        Specified by:
        apply in interface BiFunc<X,​Y,​Z>
        Parameters:
        first - The first argument
        second - The second argument
        Returns:
        The result
        Throws:
        E extends Exception