Interface FileUtils.IOFunction<A,​B>

  • Type Parameters:
    A - input type
    B - output type
    Enclosing class:
    FileUtils
    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 static interface FileUtils.IOFunction<A,​B>
    Like a Function but throwing an Exception.
    Since:
    6.2
    • Method Detail

      • apply

        B apply​(A t)
         throws Exception
        Performs the function.
        Parameters:
        t - input to operate on
        Returns:
        the output
        Throws:
        Exception - if a problem occurs