|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcz.cuni.amis.utils.Lazy<T>
cz.cuni.amis.utils.SyncLazy<T>
T - public abstract class SyncLazy<T>

Lazy that has synchronized Lazy.create() method (you do not need to synchronize it for yourself).
THREAD-SAFE!
| Field Summary |
|---|
| Fields inherited from class cz.cuni.amis.utils.Lazy |
|---|
obj |
| Constructor Summary | |
|---|---|
SyncLazy()
|
|
| Method Summary | |
|---|---|
T |
get()
Synonym for Lazy.getVal(). |
T |
getVal()
Deprecated. |
void |
set(T val)
Sets value that should be returned via Lazy.get(). |
| Methods inherited from class cz.cuni.amis.utils.Lazy |
|---|
create |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SyncLazy()
| Method Detail |
|---|
public T getVal()
getVal in class Lazy<T>Lazy.create() (SYNCHRONIZED CREATION!)public T get()
LazyLazy.getVal().
get in class Lazy<T>Lazy.create() (SYNCHRONIZED CREATION!)public void set(T val)
LazyLazy.get().
set in class Lazy<T>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||