Interface FragileFunction<T,​R,​E extends java.lang.Throwable>

  • Type Parameters:
    T - the type of the input to the function
    R - the type of the result of the function
    E - the type of the Throwable which could be thrown by 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 FragileFunction<T,​R,​E extends java.lang.Throwable>
    A Function which can throw a Throwable
    See Also:
    Function
    • Method Detail

      • apply

        R apply​(T t)
         throws E extends java.lang.Throwable
        Applies this function to the given argument.
        Parameters:
        t - the function argument
        Returns:
        the function result
        Throws:
        E - if there is some error or exception
        E extends java.lang.Throwable
        See Also:
        Function.apply(Object)