gnu.mapping
Class SharedLocation
java.lang.Object
gnu.mapping.Location
gnu.mapping.IndirectableLocation
gnu.mapping.NamedLocation
gnu.mapping.SharedLocation
- All Implemented Interfaces:
- EnvironmentKey, java.util.Map.Entry
public class SharedLocation
- extends NamedLocation
A Location suitable when Environment or Location can be access by
multiple threads. Accesses are synchronized.
Method Summary |
java.lang.Object |
get(java.lang.Object defaultValue)
|
boolean |
isBound()
|
void |
set(java.lang.Object newValue)
|
Methods inherited from class gnu.mapping.NamedLocation |
entered, equals, getEnvironment, getKey, getKeyProperty, getKeySymbol, hashCode, matches, matches, setRestore, setWithSave |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map.Entry |
getValue, setValue |
SharedLocation
public SharedLocation(Symbol symbol,
java.lang.Object property,
int timestamp)
get
public final java.lang.Object get(java.lang.Object defaultValue)
- Specified by:
get
in class Location
isBound
public boolean isBound()
- Overrides:
isBound
in class Location
set
public final void set(java.lang.Object newValue)
- Specified by:
set
in class Location