Interface NamespaceBehaviour.NamespaceStorageNode
- All Known Subinterfaces:
NamespaceBehaviour.OnDemandSchemaTreeStorageNode
- Enclosing class:
- NamespaceBehaviour<K,
V, N extends ParserNamespace<K, V>>
public static interface NamespaceBehaviour.NamespaceStorageNode
-
Method Summary
Modifier and TypeMethodDescription<K,V, N extends ParserNamespace<K, V>>
@Nullable Map<K,V> getAllFromLocalStorage(Class<N> type) <K,V, N extends ParserNamespace<K, V>>
@Nullable VgetFromLocalStorage(Class<N> type, K key) @Nullable NamespaceBehaviour.NamespaceStorageNodeReturn local namespace behaviour type.<K,V, N extends ParserNamespace<K, V>>
@Nullable VputToLocalStorage(Class<N> type, K key, V value) Populate specified namespace with a key/value pair, overwriting previous contents.<K,V, N extends ParserNamespace<K, V>>
@Nullable VputToLocalStorageIfAbsent(Class<N> 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
<K,V, @Nullable V putToLocalStorageN extends ParserNamespace<K, V>> (Class<N> type, K key, V value) 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
<K,V, @Nullable V putToLocalStorageIfAbsentN extends ParserNamespace<K, V>> (Class<N> type, K key, V value) 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
-