Interface NamespaceBehaviour.NamespaceStorageNode

All Known Subinterfaces:
NamespaceBehaviour.OnDemandSchemaTreeStorageNode
Enclosing class:
NamespaceBehaviour<K,V,N extends ParserNamespace<K,V>>

public static interface NamespaceBehaviour.NamespaceStorageNode
  • Method Details

    • getStorageNodeType

      Return local namespace behaviour type.
      Returns:
      local namespace behaviour type NamespaceBehaviour
    • getParentNamespaceStorage

      @Nullable NamespaceBehaviour.NamespaceStorageNode getParentNamespaceStorage()
    • getFromLocalStorage

      <K, V, N extends ParserNamespace<K, V>> @Nullable V getFromLocalStorage(Class<N> type, K key)
    • getAllFromLocalStorage

      <K, V, N extends ParserNamespace<K, V>> @Nullable Map<K,V> getAllFromLocalStorage(Class<N> type)
    • putToLocalStorage

      <K, V, N extends ParserNamespace<K, V>> @Nullable V putToLocalStorage(Class<N> type, K key, V value)
      Populate specified namespace with a key/value pair, overwriting previous contents. Similar to Map.put(Object, Object).
      Parameters:
      type - Namespace identifier
      key - Key
      value - Value
      Returns:
      Previously-stored value, or null if the key was not present
    • putToLocalStorageIfAbsent

      <K, V, N extends ParserNamespace<K, V>> @Nullable V putToLocalStorageIfAbsent(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 to Map.putIfAbsent(Object, Object).
      Parameters:
      type - Namespace identifier
      key - Key
      value - Value
      Returns:
      Preexisting value or null if there was no previous mapping