Interface ThrowingSupplier<T,E extends Exception>

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<T,E extends Exception>
Functional interface that can be used to returns an object and potentially throws a Exception.
Author:
Luca Giamminonni (luca.giamminonni at 4science.it)
  • Method Summary

    Modifier and Type
    Method
    Description
    get()
    Returns an object.
  • Method Details

    • get

      T get() throws E
      Returns an object.
      Returns:
      an object
      Throws:
      E - if some error occurs