Interface ThrowingSupplier<T>

  • Type Parameters:
    T - the supplied result type
    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>

    Implementation of Supplier to allow also exceptions

    Since:
    2.0
    Author:
    Andreas Pointner
    • Method Detail

      • get

        T get()
        throws Exception
        Gets a result.
        Returns:
        a result
        Throws:
        Exception - in case of any error