Interface ThrowableSupplier<T>

Type Parameters:
T - The type to be returned
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>
Used for supplying data exactly the same as Supplier except containing an exception in the method signature such that if the method provided throws an exception the try catch can be handled by the function calling get() rather than in the get method implementation
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
    Gets the data
  • Method Details

    • get

      T get() throws Exception
      Gets the data
      Returns:
      The data provided
      Throws:
      Exception - Any exceptions thrown during the get process