Interface Checked.Supplier<A,​E extends java.lang.Exception>

  • Type Parameters:
    A - the type of the result of the supplier
    E - The type of exception potentially thrown
    Enclosing class:
    Checked
    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 static interface Checked.Supplier<A,​E extends java.lang.Exception>
    Represents a Checked.Supplier that may throw an exception.
    • Method Detail

      • get

        A get()
        throws E extends java.lang.Exception
        Throws:
        E extends java.lang.Exception
      • attempt

        default Try<A> attempt()