Interface IOToIntFunction<T>

  • Type Parameters:
    T - Input 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 IOToIntFunction<T>
    Functional interface similar to ToIntFunction but allowing an IOException to be thrown.
    • Method Detail

      • applyAsInt

        int applyAsInt​(T value)
                throws java.io.IOException
        Apply this function to the argument.
        Parameters:
        value - argument
        Returns:
        int value
        Throws:
        java.io.IOException - if an I/O error occurs