of

fun <T> of(one: T, two: T, compositingFunction: BiFunction<T, T, T>): Supplier<T>

Composites two constants and supplies the result

Return

Supplier of T

Author

fzzyhmstrs

Since

0.6.8

Parameters

T

supplied type

one

Constant T instance

two

Constant T instance

compositingFunction

See also


fun <T> of(oneSupplier: Supplier<T>, twoSupplier: Supplier<T>, compositingFunction: BiFunction<T, T, T>): Supplier<T>

Composites two suppliers and supplies the result. Result is recomputed on every get call

Return

Supplier of T that computes the result on every call

Author

fzzyhmstrs

Since

0.6.8

Parameters

T

supplied type

oneSupplier

Supplier of T instance

twoSupplier

Supplier of T instance

compositingFunction

See also


fun <T> of(oneSupplier: Supplier<T>, two: T, compositingFunction: BiFunction<T, T, T>): Supplier<T>

Composites a supplier and constant and supplies the result. Result is recomputed on every get call

Return

Supplier of T that computes the result on every call

Author

fzzyhmstrs

Since

0.6.8

Parameters

T

supplied type

oneSupplier

Supplier of T instance

two

Constant T instance

compositingFunction

See also


fun <T> of(one: T, twoSupplier: Supplier<T>, compositingFunction: BiFunction<T, T, T>): Supplier<T>

Composites a constant and a supplier and supplies the result. Result is recomputed on every get call

Return

Supplier of T that computes the result on every call

Author

fzzyhmstrs

Since

0.6.8

Parameters

T

supplied type

one

Constant T instance

twoSupplier

Supplier of T instance

compositingFunction

See also