Interface ThrowableSupplier<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 interface ThrowableSupplier<T>
Represents a supplier of results that can throw any errors/exceptions.
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
    Gets a result than can throw exceptions.
  • Method Details

    • get

      T get() throws Throwable
      Gets a result than can throw exceptions.
      Returns:
      a result
      Throws:
      Throwable - any error/exception.