Function


public interface Function<I, O>


Represents a function.

Parameters
<I>

the type of the input to the function

<O>

the type of the output of the function

Summary

Public methods

abstract O
apply(I input)

Applies this function to the given input.

Public methods

apply

Added in 2.0.0
abstract O apply(I input)

Applies this function to the given input.

Parameters
I input

the input

Returns
O

the function result.