Class Functions
java.lang.Object
org.apache.commons.lang3.function.Functions
-
Method Summary
-
Method Details
-
apply
Applies theFunctionon the object if the function is notnull. Otherwise, does nothing and returnsnull.- Type Parameters:
T- the type of the argument the function applies.R- the type of the result the function returns.- Parameters:
function- the function to apply.object- the object to apply the function.- Returns:
- the value the function returns if the function is not
null;nullotherwise. - Since:
- 3.15.0
-
function
-