Interface CheckedFunction<I,​O,​E extends Exception>

  • Type Parameters:
    I - The input parameter type
    O - The output parameter type
    E - The type thrown
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface CheckedFunction<I,​O,​E extends Exception>
    A function with one input and one output which may throw a checked exception
    • Method Detail

      • apply

        O apply​(I one)
         throws E extends Exception
        Perform the action.
        Parameters:
        one - parameter
        Returns:
        return value
        Throws:
        E - Thrown when defined by types accepting this function
        E extends Exception