Interface CheckedSupplier<T,E extends Throwable>

Type Parameters:
T - The type of the value yielded by the function
E - The type of an exception thrown by the function. Since there is no mechanism in the Result class for catching multiple exception types, <E> must be a parent type to all exceptions that the function might throw. If this condition is not met, a ErrorTypeMismatchException will be thrown at runtime.
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 CheckedSupplier<T,E extends Throwable>
Similar to the Supplier interface, but with additional type information to allow for the function to throw an exception.
  • Method Summary

    Modifier and Type
    Method
    Description
    get()