Interface ThrowingSupplier

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 ThrowingSupplier
Functional interface which takes 0 parameters and returns T and can throw a checked exception.
  • Method Summary

    Modifier and Type
    Method
    Description
    T
    get()
    Gets a result.
  • Method Details

    • get

      T get() throws Exception
      Gets a result.
      Returns:
      a result
      Throws:
      Exception - any exception thrown by the encapsulated code