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).Modifier and Type | Method and Description |
---|---|
T |
get()
Returns the value this reference referes to.
|
void |
set(T value)
Sets the value this reference referes to.
|
Copyright © 2005 - 2007 Javolution.