Companion

object Companion

Functions

Link copied to clipboard
fun <T> of(one: T, two: T, compositingFunction: BiFunction<T, T, T>): Supplier<T>

Composites two constants and supplies the result

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

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

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