Interface SupplierThrows<T,E extends Throwable>

Type Parameters:
T - the type of output
E - the type of error
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 SupplierThrows<T,E extends Throwable>
A functional interface, equivalent to Supplier but that allows throwing Throwable
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
    Get a value.
  • Method Details

    • get

      T get() throws E
      Get a value.
      Returns:
      the
      Throws:
      E - the exception that may be thrown