kactoos-jvm / nnl.rocks.kactoos.scalar / Ternary / <init>
Ternary(cnd: Boolean, cons: T, alter: T)
Ternary(cnd: KScalar<Boolean>, cons: T, alter: T)
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.
T - Type of item.
condition - The condition
consequent - The consequent
alternative - The alternative
Since 0.4