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
UncheckedScalar decorator. Also
you may try IoCheckedScalar.
If you want to cache the result of the Scalar and
make sure it doesn't calculate anything twice, you can use
StickyScalar decorator.
There is no thread-safety guarantee.
StickyScalar,
UncheckedScalar,
IoCheckedScalar| Modifier and Type | Interface and Description |
|---|---|
static class |
Scalar.NoNulls<T>
Scalar check for no nulls.
|
| Modifier and Type | Method and Description |
|---|---|
T |
value()
Convert it to the value.
|
Copyright © 2017–2018 Cactoos. All rights reserved.