| Modifier and Type | Method and Description |
|---|---|
Box<T> |
Box.skip(FxBool<T> skipFn)
If the condition function returns true, empty the box.
|
Box<T> |
Box.thenIf(FxBool<T> condition,
Fx10<T> modFn)
If the box is full, and the condition has met, then execute the function.
|
Box<T> |
Box.thenIf(FxBool<T> condition,
Fx10<T> fnTrue,
Fx10<T> fnFalse)
Execute fnTrue if the condition has met, otherwise, execute fnFalse.
|
Box<T> |
Box.thenSetIf(FxBool<T> condition,
FxUnary<T> modFn)
If the box is full, and the condition has met, then execute the function.
|
Box<T> |
Box.thenSetIf(FxBool<T> condition,
FxUnary<T> fnTrue,
FxUnary<T> fnFalse)
Same as thenSet but with a condition
|
<X extends Throwable> |
Box.validate(FxBool<T> validationFn,
X throwable)
Validate the box with validation function.
|
Copyright © 2023. All rights reserved.