Interface NamespaceBehaviour.NamespaceStorageNode
- All Known Subinterfaces:
NamespaceBehaviour.OnDemandSchemaTreeStorageNode
- Enclosing class:
- NamespaceBehaviour<K,
V>
public static interface NamespaceBehaviour.NamespaceStorageNode
-
Method Summary
Modifier and TypeMethodDescription<K,V> @Nullable Map<K, V> getAllFromLocalStorage(ParserNamespace<K, V> type) <K,V> @Nullable V getFromLocalStorage(ParserNamespace<K, V> type, K key) @Nullable NamespaceBehaviour.NamespaceStorageNodeReturn local namespace behaviour type.<K,V> @Nullable V putToLocalStorage(ParserNamespace<K, V> type, K key, V value) Populate specified namespace with a key/value pair, overwriting previous contents.<K,V> @Nullable V putToLocalStorageIfAbsent(ParserNamespace<K, V> type, K key, V value) Populate specified namespace with a key/value pair unless the key is already associated with a value.
-
Method Details
-
getStorageNodeType
NamespaceBehaviour.StorageNodeType getStorageNodeType()Return local namespace behaviour type.- Returns:
- local namespace behaviour type
NamespaceBehaviour
-
getParentNamespaceStorage
@Nullable NamespaceBehaviour.NamespaceStorageNode getParentNamespaceStorage() -
getFromLocalStorage
-
getAllFromLocalStorage
-
putToLocalStorage
Populate specified namespace with a key/value pair, overwriting previous contents. Similar toMap.put(Object, Object).- Parameters:
type- Namespace identifierkey- Keyvalue- Value- Returns:
- Previously-stored value, or null if the key was not present
-
putToLocalStorageIfAbsent
Populate specified namespace with a key/value pair unless the key is already associated with a value. Similar toMap.putIfAbsent(Object, Object).- Parameters:
type- Namespace identifierkey- Keyvalue- Value- Returns:
- Preexisting value or null if there was no previous mapping
-