Kactoos

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

BiFuncOf

class BiFuncOf<in X : Any, in Y : Any, out Z : Any> : BiFunc<X, Y, Z>

Represents many possible inputs as BiFunc.

There is no thread-safety guarantee.

Parameters

X - Type of input

Y - Type of input

Z - Type of output

func - Func

Since 0.4

Constructors

Name Summary
<init> BiFuncOf(fnc: BiFunc<X, Y, Z>)
BiFuncOf(proc: BiProc<X, Y>, result: Z)BiFuncOf(func: KBiFunc<X, Y, Z>)
Represents many possible inputs as BiFunc.

Functions

Name Summary
apply fun apply(first: X, second: Y): Z
Apply it.

Companion Object Functions

Name Summary
invoke operator fun <Z : Any> invoke(result: Z): BiFuncOf<Any, Any, Z>
operator fun <X : Any, Z : Any> invoke(fnc: Func<X, Z>): BiFuncOf<X, Any, Z>
operator fun <X : Any, Z : Any> invoke(proc: Proc<X>, result: Z): BiFuncOf<X, Any, Z>