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 abstract class ScopeMap<S,K,V,T extends ScopeMap<S,K,V,T>> extends DelegatingMap<K,V> implements Scope<S,K,V,T>
Scopeusing a factory method to create child scopes when requested by getScope()
In general query usage, the ScopeMap representing the global scope will be passed and clients will look up the child scope which they wish to use to resolve map keys or store map keys at.
|Constructor and Description|
Build a scope with no parent scope and empty children.
Build a scope with a parent scope.
|Modifier and Type||Method and Description|
Used to construct child scopes.
Resolves a child scope.
Helper function converting the varargs to array.
clear, clearLocal, containsKey, containsValue, entrySet, equals, flatView, get, hashCode, keySet, put, remove, removeLocal, size, values
forEach, getOrDefault, removeEldestEntry, replaceAll
clone, compute, computeIfAbsent, computeIfPresent, isEmpty, merge, putAll, putIfAbsent, remove, replace, replace
finalize, getClass, notify, notifyAll, wait, wait, wait
Unless otherwise noted implementations should guarantee lazy initialization of child scopes.
scopeKeys- The subtree address expressed as a sequence of scopeKeys
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.