Interface CheckedSupplier<T, E extends Exception>

Type Parameters:
T - The type of results supplied by this supplier.
E - The type of the exception thrown by the function.
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 CheckedSupplier<T, E extends Exception>
Represents a Supplier that can throw an exception.
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
    Returns the result of the method.
  • Method Details

    • get

      T get() throws E
      Returns the result of the method.
      Throws:
      E - An exception that occurred while performing the operation.