Function


public fun interface Function<T extends Object, R extends Object>


Compat version of java.util.function.Function

Parameters
<T extends Object>

the type of the input to the operation

<R extends Object>

the type of the output of the function

Summary

Public methods

abstract @NonNull R
apply(@NonNull T value)

Applies the function to the argument parameter.

Public methods

apply

Added in 1.12.0
abstract @NonNullapply(@NonNull T value)

Applies the function to the argument parameter.

Parameters
@NonNull T value

the argument for the function

Returns
@NonNull R

the result after applying function