Interface ExceptionalFunction<I,​R,​E extends java.lang.Exception>

  • Type Parameters:
    I - the input type
    R - the result type
    E - the exception of your choice
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    public interface ExceptionalFunction<I,​R,​E extends java.lang.Exception>
    A generic functional interface that allows you to consume an item, return a result, and potentially throw an exception.
    • Method Detail

      • apply

        R apply​(I i)
         throws E extends java.lang.Exception
        The method that will be called
        i - the input
        the result of the call
        E - if the call throws an exception
        E extends java.lang.Exception