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 Summary

    Modifier and Type
    Method
    Description
    apply(T t)
    Apply the function and get a result.
  • Method Details

    • apply

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