Interface ThrowingSupplier<T>

Type Parameters:
T - The type of the input to the operation
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<T>
Based on Java's Supplier with the difference that this class may permit the throwing of an Exception.
See Also:
  • Method Summary

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

    • get

      T get() throws Exception
      Gets a result.
      Returns:
      a result
      Throws:
      Exception - in case an exception occurs while it is being run