Interface CheckedSupplier<R>

  • Type Parameters:
    R - the type of the result
    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<R>
    A checked version of Supplier.

    This is intended to be used with Unchecked.

    • Method Detail

      • get

        R get()
        throws Throwable
        Gets a result.
        Returns:
        a result
        Throws:
        Throwable - if an error occurs