gnu.mapping

Class SharedLocation

Implemented Interfaces:
java.util.Map.Entry, EnvironmentKey

public class SharedLocation
extends NamedLocation

A Location suitable when Environment or Location can be access by multiple threads. Accesses are synchronized.

Field Summary

Fields inherited from class gnu.mapping.IndirectableLocation

DIRECT_ON_SET, INDIRECT_FLUIDS, base, value

Fields inherited from class gnu.mapping.Location

UNBOUND

Fields inherited from interface gnu.mapping.EnvironmentKey

FUNCTION

Constructor Summary

SharedLocation(Symbol symbol, Object property, int timestamp)

Method Summary

Object
get(Object defaultValue)
boolean
isBound()
void
set(Object newValue)

Methods inherited from class gnu.mapping.NamedLocation

entered, equals, getEnvironment, getKey, getKeyProperty, getKeySymbol, hashCode, matches, matches, setRestore, setWithSave

Methods inherited from class gnu.mapping.IndirectableLocation

getBase, getBaseForce, getEnvironment, getKeyProperty, getKeySymbol, isConstant, setAlias, setBase, undefine

Methods inherited from class gnu.mapping.Location

entered, get, get, getBase, getKeyProperty, getKeySymbol, getValue, isBound, isConstant, make, make, make, print, set, setRestore, setValue, setWithSave, toString, undefine

Constructor Details

SharedLocation

public SharedLocation(Symbol symbol,
                      Object property,
                      int timestamp)

Method Details

get

public final Object get(Object defaultValue)
Overrides:
get in interface Location

isBound

public boolean isBound()
Overrides:
isBound in interface Location

set

public final void set(Object newValue)
Overrides:
set in interface Location