|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - The type of the object whose reference is lazyfied.public interface LazyRef<T>
Encapsulate the reference of an object for loading on demand. There is no standard way in Java to implement lazy evaluation of method parameters. This interface serves that purpose in a simple, straightforward way.
Concrete implementation may chose to cache the value or recompute it
every time. A caller should not generally rely on the value being
cached, even though in general that is the intent...hence the name
LazyRef.
| Method Summary | |
|---|---|
T |
deref()
Return the actual value that this reference encapsulate. |
| Method Detail |
|---|
T deref()
Return the actual value that this reference encapsulate. Concrete implementation may perform a length operation in order to get to the value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||