Interface CheckedSupplier<T,​E extends java.lang.Throwable>

  • Type Parameters:
    T - The type returned by the operation
    E - A checked exception type that is thrown by the operation
    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 java.lang.Throwable>
    Checked wrapper for a Supplier.
    • Method Detail

      • get

        T get()
        throws E extends java.lang.Throwable
        Throws:
        E extends java.lang.Throwable
      • asUnchecked

        default java.util.function.Supplier<T> asUnchecked()
      • unchecked

        static <TT,​EE extends java.lang.Throwable> java.util.function.Supplier<TT> unchecked​(CheckedSupplier<TT,​EE> supplier)