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 Detail

      • get

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