Interface Supplier<T,E extends Exception>

Type Parameters:
T - The type of object supplied.
E - The type of exception thrown.
All Known Implementing Classes:
LazySupplier
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 Supplier<T,E extends Exception>
A Supplier functional interface which can throw a checked Exception.
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
    Supply a value.
  • Method Details

    • get

      T get() throws E
      Supply a value.
      Returns:
      The value.
      Throws:
      E - An exception.