Interface ThrowingSupplier<T, X extends Throwable>

Type Parameters:
T - the type of value returned by the supplier
X - the throwable that can be thrown when returning the result
All Known Implementing Classes:
LazyThrowingSingleton
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 ThrowingSupplier<T, X extends Throwable>
Represents a supplier of values that can throw
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
     
  • Method Details

    • get

      T get() throws X
      Returns:
      the value of the supplier
      Throws:
      X
      See Also: