Interface ExceptionalFunction<T,​R,​E extends Exception>

  • Type Parameters:
    T - type of the input
    R - type of out output
    E - type of the exception

    public interface ExceptionalFunction<T,​R,​E extends Exception>
    Function that allows lambda to throw exceptions without handling it
    Author:
    Peter Kurfer
    • Method Detail

      • apply

        R apply​(T input)
         throws E extends Exception
        Applying some logic to a generic input value
        Parameters:
        input - value to apply
        Throws:
        E - well...don't know why ¯\_(ツ)_/¯
        E extends Exception