Interface Function1<A,R>

Type Parameters:
A - type of function parameter
R - type of return value
All Superinterfaces:
Function1Of<A,R>, Kind<Function1<A,?>,R>, Recoverable
All Known Subinterfaces:
Operator1<T>
All Known Implementing Classes:
MemoizedFunction
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 non-sealed interface Function1<A,R> extends Function1Of<A,R>, Recoverable

This interface represents a function with a single parameter. Similar to Function.

The function can throws checked exceptions, but calling apply() method, the exception is sneaky thrown. So, it can be used as a higher order function in Stream or Optional API.