Package gnu.mapping

Class NamedLocation<T>

    • Constructor Detail

      • NamedLocation

        public NamedLocation​(Symbol name,
                             java.lang.Object property)
    • Method Detail

      • entered

        public boolean entered()
        Description copied from class: Location
        True if directly entered in an Environment. (Only if NamedLocation.)
        Overrides:
        entered in class Location<T>
      • matches

        public final boolean matches​(Symbol symbol,
                                     java.lang.Object property)
        Specified by:
        matches in interface EnvironmentKey
      • equals

        public boolean equals​(java.lang.Object x)
        Specified by:
        equals in interface java.util.Map.Entry<EnvironmentKey,​T>
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.util.Map.Entry<EnvironmentKey,​T>
        Overrides:
        hashCode in class java.lang.Object
      • setWithSave

        public java.lang.Object setWithSave​(T newValue)
        Description copied from class: Location
        Set a value, but return cookie so old value can be restored. This is intended for fluid-let where (in the case of multiple threads) a simple save-restore isn't always the right thing.
        Overrides:
        setWithSave in class Location<T>
      • setRestore

        public void setRestore​(java.lang.Object oldValue)
        Description copied from class: Location
        Restore an old value.
        Overrides:
        setRestore in class Location<T>
        Parameters:
        oldValue - the return value from a prior setWithSave.