Interface ThrowingFunction<T,​R>

  • Type Parameters:
    R - the result of the function
    T - the input of the function
    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 ThrowingFunction<T,​R>

    Implementation of Function to allow also exceptions

    Since:
    2.0
    Author:
    Andreas Pointner
    • Method Detail

      • apply

        R apply​(T t)
         throws Exception
        Applies a function to t
        Parameters:
        t - the input of the function
        Returns:
        the result of the function
        Throws:
        Exception - the exception if one is thrown