Kactoos

kactoos-jvm / nnl.rocks.kactoos.scalar / Ternary / <init>

<init>

Ternary(cnd: Boolean, cons: T, alter: T) Ternary(cnd: KScalar<Boolean>, cons: T, alter: T)

Parameters

cnd - The condition

cons - The consequent

alter - The alternative

Since 0.4

Ternary(condition: KScalar<Boolean>, consequent: KScalar<T>, alternative: KScalar<T>)

Ternary operation.

There is no thread-safety guarantee.

Parameters

T - Type of item.

condition - The condition

consequent - The consequent

alternative - The alternative

Since 0.4