|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Reference<T>
This interface represents an object reference, the reachability level of a reference varies based on the actual reference implementation. Here are the reachability levels for some of Javolution references:
PersistentContext.Reference :
Reachable accross multiple program executions.LocalContext.Reference :
Reachable only within the scope of the
LocalContext
where it has been set.AllocatorContext.Reference :
Reachable only within the scope of the
Allocator
where it has been created (factory produced).
| Method Summary | |
|---|---|
T |
get()
Returns the value this reference referes to. |
void |
set(T value)
Sets the value this reference referes to. |
| Method Detail |
|---|
T get()
null if not set.void set(T value)
value - the reference value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||