Kactoos

kactoos-jvm / nnl.rocks.kactoos.func / FuncOf

FuncOf

class FuncOf<in X : Any, out Y : Any> : Func<X, Y>

Represents many possible inputs as Func.

There is no thread-safety guarantee.

Parameters

X - Type of input.

Y - Type of output.

func - Func.

Since 0.4

Constructors

Name Summary
<init> FuncOf(proc: Proc<X>, result: Y)FuncOf(func: KFunc<X, Y>)
Represents many possible inputs as Func.

Functions

Name Summary
apply fun apply(input: X): Y
Apply it.

Companion Object Functions

Name Summary
invoke operator fun <Y : Any> invoke(result: Y): FuncOf<Any, Y>