Interface FunctionThrows<T,R,E extends Throwable>

Type Parameters:
T - the type of input
R - the type of output
E - the type of error
All Known Subinterfaces:
InputStreamFunction<R>
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 FunctionThrows<T,R,E extends Throwable>
A functional interface, equivalent to Function but that allows throwing Throwable
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(T input)
    Apply r.
  • Method Details

    • apply

      R apply(T input) throws E
      Apply r.
      Parameters:
      input - the input
      Returns:
      the r
      Throws:
      E - the e