Function.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static < the type of the argument the function applies. T, the type of the result the function returns. R> R | |
| public static < The type of the input of this method and the function. T, The type of the result of the function and this method. R> R | Returns: The result of the function (which may benull) or null if the input value is null.The value to apply the function to, may be value, final Function<? super T, ? extends R> null.The function to apply, must not be mapper)null.Applies a value to a function if the value isn't |
| public static < The type of the input of this method and the first function. T, The type of the result of the first function and the input to the second function. U, The type of the result of the second function and this method. R> R | Returns: The result of the final function (which may benull) or null if the input value or any intermediate value is null.The value to apply the functions to, may be value1, final Function<? super T, ? extends U> null.The first function to apply, must not be mapper1, final Function<? super U, ? extends R> null.The second function to apply, must not be mapper2)null.Applies values to a chain of functions, where a |
| public static < The type of the input of this method and the first function. T, The type of the result of the first function and the input to the second function. U, The type of the result of the second function and the input to the third function. V, The type of the result of the third function and this method. R> R | Returns: The result of the final function (which may benull) or null if the input value or any intermediate value is null.The value to apply the first function, may be value1, final Function<? super T, ? extends U> null.The first function to apply, must not be mapper1, final Function<? super U, ? extends V> null.The second function to apply, must not be mapper2, final Function<? super V, ? extends R> null.The third function to apply, must not be mapper3)null.Applies values to a chain of functions, where a |
| public static < Input type. T, Return type. R> Function |
| Functions | back to summary |
|---|---|
| private Functions() | |
| apply | back to summary |
|---|---|
| public static <T, R> R apply(final Function<T, R> function, final T object) Applies the
| |
| applyNonNull | back to summary |
|---|---|
| public static <T, R> R applyNonNull(final T value, final Function<? super T, ? extends R> mapper) Applies a value to a function if the value isn't
Useful when working with expressions that may return
| |
| applyNonNull | back to summary |
|---|---|
| public static <T, U, R> R applyNonNull(final T value1, final Function<? super T, ? extends U> mapper1, final Function<? super U, ? extends R> mapper2) Applies values to a chain of functions, where a
Useful when working with expressions that may return
| |
| applyNonNull | back to summary |
|---|---|
| public static <T, U, V, R> R applyNonNull(final T value1, final Function<? super T, ? extends U> mapper1, final Function<? super U, ? extends V> mapper2, final Function<? super V, ? extends R> mapper3) Applies values to a chain of functions, where a
Useful when working with expressions that may return
| |
| function | back to summary |
|---|---|
| public static <T, R> Function Starts a fluent chain like | |