Interface CheckedSupplier<T,E extends Exception>

Type Parameters:
T - type of object to supply
E - exception-type if supplying fails
All Known Implementing Classes:
CachedSupplier
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>
Like Supplier but can also throw an exception.
Author:
Owen Feehan
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
    Applies a supplier like with Supplier.get().
  • Method Details

    • get

      T get() throws E
      Applies a supplier like with Supplier.get().
      Returns:
      the supplied object.
      Throws:
      E - an exception that may be thrown.