public final class Functions
extends java.lang.Object
Function.| Modifier and Type | Method and Description |
|---|---|
static <T,R> R |
apply(java.util.function.Function<T,R> function,
T object)
Applies the
Function on the object if the function is not null. |
static <T,R> java.util.function.Function<T,R> |
function(java.util.function.Function<T,R> function)
Starts a fluent chain like
function(foo::bar).andThen(...).andThen(...).apply(...); |
public static <T,R> R apply(java.util.function.Function<T,R> function,
T object)
Function on the object if the function is not null. Otherwise, does nothing and returns null.T - the type of the argument the function applies.R - the type of the result the function returns.function - the function to apply.object - the object to apply the function.null; null otherwise.public static <T,R> java.util.function.Function<T,R> function(java.util.function.Function<T,R> function)
function(foo::bar).andThen(...).andThen(...).apply(...);T - Input type.R - Return type.function - the argument to return.Copyright © 2010 - 2025 Adobe. All Rights Reserved