Interface Try.ThrowingSupplier<T>

Type Parameters:
T - The type of the result.
Enclosing class:
Try<T>
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 static interface Try.ThrowingSupplier<T>
A functional interface for a supplier that may throw a checked or unchecked exception.
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
    Retrieves the result.
  • Method Details

    • get

      T get() throws Throwable
      Retrieves the result.
      Returns:
      The result value.
      Throws:
      Throwable - If the computation fails.