public final class Lazy<A> extends Object
f is expected to be a pure function this is not a serious problem despite the
fact that calculation may happens multiple times.| Constructor and Description |
|---|
Lazy(Function0<A> f)
Create a new lazy value.
|
| Modifier and Type | Method and Description |
|---|---|
static <A> Lazy<A> |
lazy(Function0<A> f) |
A |
value() |
Copyright © 2009–2021 Opencast Project. All rights reserved.