X
- Type of inputY
- Type of outputpublic interface Func<X,Y>
If you don't want to have any checked exceptions being thrown
out of your Func
, you can use
UncheckedFunc
decorator. Also
you may try IoCheckedFunc
.
If you want to cache the result of the Func
and
make sure it doesn't calculate anything twice, you can use
StickyFunc
decorator.
There is no thread-safety guarantee.
StickyFunc
,
UncheckedFunc
,
IoCheckedFunc
Modifier and Type | Interface and Description |
---|---|
static class |
Func.NoNulls<X,Y>
Func check for no nulls.
|
Modifier and Type | Method and Description |
---|---|
Y |
apply(X input)
Apply it.
|
Copyright © 2017 Cactoos. All rights reserved.