Interface ExceptionUtil.ThrowingSupplier<T>

Type Parameters:
T - the type of result supplied
Enclosing class:
ExceptionUtil
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 ExceptionUtil.ThrowingSupplier<T>
A supplier that may throw any Throwable, including checked exceptions.
  • Method Summary

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

    • get

      T get() throws Throwable
      Gets a result.
      Returns:
      a result
      Throws:
      Throwable - if unable to compute