Interface IOFunction<T,R>

Type Parameters:
T - input type
R - result type
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>
Minimal equivalent of Function whose apply(Object) method is allowed to throw IOException.
Since:
5.4
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(T value)
    Applies the transformation.
  • Method Details

    • apply

      R apply(T value) throws IOException
      Applies the transformation.
      Parameters:
      value - source value (never null)
      Returns:
      transformed value
      Throws:
      IOException - if the transformation cannot be performed