T
- Type of resultpublic interface Scalar<T>
If you don't want to have any checked exceptions being thrown
out of your Scalar
, you can use
Unchecked
decorator. Also
you may try IoChecked
.
If you want to cache the result of the Scalar
and
make sure it doesn't calculate anything twice, you can use
Sticky
decorator.
There is no thread-safety guarantee.
Modifier and Type | Method and Description |
---|---|
T |
value()
Convert it to the value.
|
Copyright © 2017–2020 Cactoos. All rights reserved.