@FunctionalInterface
public interface Function<T, R>


Represents a function that accepts an argument and produces a result. It is used internally to avoid using Java 8 functional interface that leads to desugaring and Proguard shrinking.

Parameters
<T>

: the type of the input of the function

<R>

: the type of the output of the function

See also
Function

Summary

Public methods

abstract R
apply(T t)

Applies this function to the given argument.

Public methods

apply

Added in 1.0.0
abstract R apply(T t)

Applies this function to the given argument.

Parameters
T t

the function argument

Returns
R

the function result