Interface IOSupplier<T>

Type Parameters:
T - Type returned by the supplier
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 IOSupplier<T>
Functional interface similar to Supplier but allowing an IOException to be thrown.
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
    Get a result from the supplier.
  • Method Details

    • get

      T get() throws IOException
      Get a result from the supplier.
      Returns:
      a result
      Throws:
      IOException - if an I/O error occurs