T
- Type of outputpublic final class CallableOf<T> extends CallableEnvelope<T>
Callable
.
You may want to use this decorator where
Callable
is required, but you just have a function:
Callable<String> callable = new CallableOf<>( i -> "Hello, world!" );
There is no thread-safety guarantee.
Constructor and Description |
---|
CallableOf(Scalar<? extends T> slr)
Ctor.
|
Copyright © 2017–2022 Cactoos. All rights reserved.