Kactoos

kactoos-jvm / nnl.rocks.kactoos.scalar / ScalarWithFallback

ScalarWithFallback

class ScalarWithFallback<T : Any> : Scalar<T>

Scalar with a fallback plan.

There is no thread-safety guarantee.

Parameters

T - Type of result

origin - Original scalar

fallbacks - Fallbacks

follow - Follow up function

Since 0.4

Constructors

Name Summary
<init> ScalarWithFallback(origin: KScalar<T>, fallbacks: Iterable<FallbackFrom<T>>, follow: KFunc<T, T>)
Scalar with a fallback plan.

Functions

Name Summary
invoke fun invoke(): T
Get value of this Scalar