Interface ThrowingSupplier<R,T extends Throwable>

Type Parameters:
R - The output result type to be supplied
T - The type of Throwable thrown by the supplier
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<R,T extends Throwable>
A better version of Java's Supplier interface that allows for the suppliers to throw whatever Throwable is specified.
Version:
0.1-Alpha-SNAPSHOT
Author:
Logan Ferree (Tadukoo)
  • Method Summary

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

    • get

      R get() throws T
      Returns a result.
      Returns:
      A result
      Throws:
      T - Determined by the supplier, not required