Interface SpecificThrowingSupplier<E extends Throwable,R>

Type Parameters:
E - The exception type
R - The result type
All Known Subinterfaces:
ThrowingSupplier<R>
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 SpecificThrowingSupplier<E extends Throwable,R>
Similar to a Supplier, except that the functional get method is allowed to throw the specified exception.
Since:
2.11.0
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
    Creates a result.
  • Method Details

    • get

      R get() throws E
      Creates a result.
      Returns:
      The result
      Throws:
      E - Any exception