| Modifier and Type | Field and Description |
|---|---|
(package private) long |
data |
| Constructor and Description |
|---|
L(long it) |
| Modifier and Type | Method and Description |
|---|---|
Thunk<java.lang.Long> |
asThunk()
Tell if this is really a
Thunk |
java.lang.Long |
call()
Compute the value if it is needed.
|
boolean |
isShared()
Tell if this is shared.
|
public java.lang.Long call()
LazyCompute the value if it is needed.
public Thunk<java.lang.Long> asThunk()
Lazy Tell if this is really a Thunk
public boolean isShared()
LazyTell if this is shared.
Data and functions whose Lazy.call() method returns this as well
as simple boxes that just hold a value ready to be supplied and Thunks
are considered shared.
But a bare lambda expression is assumed to be in need of sharing. For example:
() -> 42