Interface ThrowingSupplier<T>

  • Type Parameters:
    T - Represents the type returned by get.
    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>
    Declares an interface similar to Supplier<T> which can also throw an exception.
    • Method Detail

      • get

        T get()
        throws java.lang.Exception
        Gets a result.
        Returns:
        A result.
        Throws:
        java.lang.Exception - as determined by the implementing type.