Package gnu.mapping

Class SharedLocation<T>

All Implemented Interfaces:
EnvironmentKey, Map.Entry<EnvironmentKey,T>

public class SharedLocation<T> extends NamedLocation<T>
A Location suitable when Environment or Location can be access by multiple threads. Accesses are synchronized.
  • Constructor Details

    • SharedLocation

      public SharedLocation(Symbol symbol, Object property, int timestamp)
  • Method Details

    • get

      public final T get()
      Description copied from class: Location
      Get the current value of this location.
      Specified by:
      get in class Location<T>
    • get

      public final T get(T defaultValue)
      Overrides:
      get in class Location<T>
    • isBound

      public boolean isBound()
      Specified by:
      isBound in class Location<T>
    • set

      public final void set(T newValue)
      Specified by:
      set in class Location<T>