S- The address element type for looking up child scopes
K- The key type for the map
V- The value type for the map
T- The implementation type (used to type returns from getScope in subclasses)
public interface Scope<S,K,V,T extends Scope<S,K,V,T>> extends Map<K,V>
A Scope may have child scopes which it encloses. It may have a parent scope which encloses it. Values defined in a parent scope will be available via (@link Map#get(K k)} on itself, unless the scope itself defines (and therefore overshadows) that entry.
Changes to a scope will be available to it's child scopes unless they overshadow the corresponding key.
The remove and clear operations are not supported on Scopes because parent scopes cannot be directly accessed or altered.
|Modifier and Type||Method and Description|
Resolves a child scope.
Puts a key value pair into an immediate child scope.
Unless otherwise noted implementations should guarantee lazy initialization of child scopes.
scopeKeys- The subtree address expressed as a sequence of scopeKeys
scopeKey- The name of the child scope
key- The key for the value being stored
value- The value being stored
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.