Interface IOFunction<T,​R>

  • Type Parameters:
    T - Type accepted by the function
    R - Type returned by the function
    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 IOFunction<T,​R>
    Functional interface similar to Function but allowing an IOException to be thrown.
    • Method Detail

      • apply

        R apply​(T t)
         throws java.io.IOException
        Apply the function and get a result.
        Parameters:
        t - function argument
        Returns:
        function result
        Throws:
        java.io.IOException - if an I/O error occurs