This is a functional interface and can be used as the assignment target for a lambda expression or method reference.
| Modifier and Type | Method and Description |
|---|---|
| public default < The type of the value supplied by the specified
S> FunctionFunction. | |
| public R | Returns: The output of this function.The input to this function. t)Applies this function to the specified argument. |
| public static < The type of the function input. T, The type of the function output. R> Function | Returns: AFunction which wraps the specified
java.util.function.Function.The wrapped)java.util.function.Function to wrap. Must not
be null.Returns a |
| public static < The type of the function input. T, The type of the function output. R> Function | Returns: Ajava.util.function.Function which wraps the specified
Function.The wrapped)Function to wrap. Must not be null.Returns a |
| public static < The type of the function input. T, The type of the function output. R> Function | Returns: Ajava.util.function.Function which wraps the specified
Function and the specified value.The wrapped, R Function to wrap. Must not be null.The value to return if the specified orElse)Function
throws an Exception.Returns a |
| public static < The type of the function input. T, The type of the function output. R> Function | Returns: Ajava.util.function.Function which wraps the specified
Function and the specified
java.util.function.Supplier.The wrapped, Supplier<? extends R> Function to wrap. Must not be null.The orElseGet)java.util.function.Supplier to call for a
return value if the specified Function throws an
Exception.Returns a |
| public default < The type of the value consumed the specified S> FunctionFunction. | Returns: AFunction composed of this Function and the
specified Function.The before)Function to be called to supply a value to be
consumed by this Function. Must not be null.Compose the specified |
| andThen | back to summary |
|---|---|
| public default <S> Function Compose the specified | |
| apply | back to summary |
|---|---|
| public R apply(T t) throws Exception Applies this function to the specified argument.
| |
| asFunction | back to summary |
|---|---|
| public static <T, R> Function Returns a | |
| asJavaFunction | back to summary |
|---|---|
| public static <T, R> Function Returns a
The returned | |
| asJavaFunctionOrElse | back to summary |
|---|---|
| public static <T, R> Function Returns a
If the the specified
| |
| asJavaFunctionOrElseGet | back to summary |
|---|---|
| public static <T, R> Function Returns a
If the the specified
| |
| compose | back to summary |
|---|---|
| public default <S> Function Compose the specified | |