Interface IOFunction<T,R>

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>
A simple (optional) function that may throw an IOException.
Author:
Holger Eichelberger, SSE
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(T arg)
    Applies this function to the given argument.
  • Method Details

    • apply

      R apply(T arg) throws IOException
      Applies this function to the given argument.
      Parameters:
      arg - the function argument
      Returns:
      the function result
      Throws:
      IOException - if an I/O error occurs.