T
- public abstract class SyncLazy<T> extends Lazy<T>
Lazy
that has synchronized Lazy.create()
method (you do not need to synchronize it for yourself).
THREAD-SAFE!
Constructor and Description |
---|
SyncLazy() |
Modifier and Type | Method and Description |
---|---|
T |
get()
Synonym for
Lazy.getVal() . |
T |
getVal()
Deprecated.
|
void |
set(T val)
Sets value that should be returned via
Lazy.get() . |
public T getVal()
getVal
in class Lazy<T>
Lazy.create()
(SYNCHRONIZED CREATION!)public T get()
Lazy
Lazy.getVal()
.get
in class Lazy<T>
Lazy.create()
(SYNCHRONIZED CREATION!)Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.