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

    • Field Detail

      • NUL

        static final FailableSupplier NUL
        Returns the singleton supplier that always returns null.

        This supplier never throws an exception.

        Since:
        3.14.0
    • Method Detail

      • nul

        static <T,​E extends java.lang.Exception> FailableSupplier<T,​E> nul()
        Returns the singleton supplier that always returns null.

        This supplier never throws an exception.

        Type Parameters:
        T - Supplied type.
        E - The kind of thrown exception or error.
        Returns:
        The NUL singleton.
        Since:
        3.14.0
      • get

        T get()
        throws E extends java.lang.Throwable
        Supplies an object
        Returns:
        a result
        Throws:
        E - if the supplier fails
        E extends java.lang.Throwable