Interface SupplierWithException<R>

  • Type Parameters:
    R - the result type
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @Deprecated
    @FunctionalInterface
    public interface SupplierWithException<R>
    Deprecated.
    Supplier interface that allows exceptions.
    • Method Detail

      • get

        R get()
        throws java.lang.Exception
        Deprecated.
        Throws:
        java.lang.Exception
      • orElseThrow

        default java.util.function.Supplier<R> orElseThrow()
        Deprecated.
      • orElse

        default java.util.function.Supplier<R> orElse​(R orElse)
        Deprecated.
      • orElseGet

        default java.util.function.Supplier<R> orElseGet​(java.util.function.Supplier<? extends R> orElseGet)
        Deprecated.
      • asSupplier

        static <R> java.util.function.Supplier<R> asSupplier​(SupplierWithException<R> unchecked)
        Deprecated.
      • asSupplierOrElse

        static <R> java.util.function.Supplier<R> asSupplierOrElse​(SupplierWithException<R> unchecked,
                                                                   R orElse)
        Deprecated.
      • asSupplierOrElseGet

        static <R> java.util.function.Supplier<R> asSupplierOrElseGet​(SupplierWithException<R> unchecked,
                                                                      java.util.function.Supplier<? extends R> orElseGet)
        Deprecated.