Interface IThrowingSupplier<V,​T extends java.lang.Throwable>

  • Type Parameters:
    V - type which is supplied
    T - type of exception which gets thrown
    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 IThrowingSupplier<V,​T extends java.lang.Throwable>
    Supplier which allows throwing any exception.
    Since:
    v1.3.0 - 2023-01-12
    • Method Detail

      • get

        V get()
        throws T extends java.lang.Throwable
        Returns the result of the supplier or throws an exception.
        Returns:
        result of supplied function
        Throws:
        T - exception
        T extends java.lang.Throwable