saker.util Documentation TaskDoc JavaDoc Packages
public interface ThrowingSupplier<T>
Functional interface similar to Supplier, except the get() method is allowed to throw an arbitrary exception.

The get() method is declared to be able to throw Exception, therefore a functional interface such as this can be used in contexts where users may throw checked exceptions.

Methods
public T
get()
Runs the operations that the subclass defines and gets the result.
public abstract T get() throws Exception
Runs the operations that the subclass defines and gets the result.
Gets the result of the supplier.
ExceptionIf the execution fails in any way.