T
- Type of item.public final class Ternary<T> extends Object implements Scalar<T>
There is no thread-safety guarantee.
Scalar.NoNulls<T>
Constructor and Description |
---|
Ternary(boolean cnd,
T cons,
T alter)
Ctor.
|
Ternary(Scalar<Boolean> cnd,
Scalar<T> cons,
Scalar<T> alter)
Ctor.
|
Ternary(Scalar<Boolean> cnd,
T cons,
T alter)
Ctor.
|
Ternary(X input,
Func<X,Boolean> cnd,
Func<X,T> cons,
Func<X,T> alter)
Ctor.
|
public Ternary(X input, Func<X,Boolean> cnd, Func<X,T> cons, Func<X,T> alter)
X
- Type of inputinput
- The input to pass to all of themcnd
- The conditioncons
- The consequentalter
- The alternativepublic Ternary(boolean cnd, T cons, T alter)
cnd
- The conditioncons
- The consequentalter
- The alternativepublic Ternary(Scalar<Boolean> cnd, T cons, T alter)
cnd
- The conditioncons
- The consequentalter
- The alternativeCopyright © 2017 Cactoos. All rights reserved.