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 Detail

      • apply

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