Package gnu.mapping

Class SharedLocation<T>

  • All Implemented Interfaces:
    EnvironmentKey, java.util.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 Detail

      • SharedLocation

        public SharedLocation​(Symbol symbol,
                              java.lang.Object property,
                              int timestamp)
    • Method Detail

      • 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>