kactoos-jvm / nnl.rocks.kactoos.scalar / ScalarWithFallback
class ScalarWithFallback<T :
Any
> :
Scalar
<
T
>
Scalar with a fallback plan.
There is no thread-safety guarantee.
T
- Type of result
origin
- Original scalar
fallbacks
- Fallbacks
follow
- Follow up function
Since 0.4
Name | Summary |
---|---|
<init> | ScalarWithFallback(origin: KScalar < T >, fallbacks: Iterable < FallbackFrom < T >>, follow: KFunc < T , T >) Scalar with a fallback plan. |
Name | Summary |
---|---|
invoke | fun invoke(): T Get value of this Scalar |