Interface Checked.Supplier<A, E extends 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 Exception>
Represents a Checked.Supplier that may throw an exception.
Since:
4.4.0
  • Method Summary

    Modifier and Type
    Method
    Description
    default Try<A>
     
    get()
     
  • Method Details

    • get

      A get() throws E
      Throws:
      E
    • attempt

      default Try<A> attempt()