| Modifier and Type | Method and Description |
|---|---|
static <T,R> R |
apply(Function<T,R> function,
T object)
Applies the
Function on the object if the function is not null. |
static <T,R> Function<T,R> |
function(Function<T,R> function)
Starts a fluent chain like
function(foo::bar).andThen(...).andThen(...).apply(...); |
public static <T,R> R apply(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.Copyright © 2001–2025 The Apache Software Foundation. All rights reserved.