Interface ThrowingSupplier<V,T extends Throwable>

Type Parameters:
T - the type of the exception the accept method may throw.
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<V,T extends Throwable>
Represents a supplier of results that may thrown an exception.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
    Get a result, potentially throwing an exception.
  • Method Details

    • get

      V get() throws T
      Get a result, potentially throwing an exception.
      Returns:
      the result
      Throws:
      T - the exception that may be thrown