Interface SupplierWithIO<T>

  • Type Parameters:
    T - The type that the supplier returns.
    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 SupplierWithIO<T>
    A supplier that can throw an IO exception. Thus putting it on the caller to handle it instead of on the creator of the lambda function.
    • Method Detail

      • getWithIO

        T getWithIO()
             throws java.io.IOException
        Throws:
        java.io.IOException