Class PersistentTrieMap.AbstractMapNode<K,V>

java.lang.Object
io.usethesource.capsule.core.PersistentTrieMap.AbstractMapNode<K,V>
All Implemented Interfaces:
MapNode<K,V,PersistentTrieMap.AbstractMapNode<K,V>>, Node, Serializable
Direct Known Subclasses:
PersistentTrieMap.CompactMapNode
Enclosing class:
PersistentTrieMap<K,V>

protected abstract static class PersistentTrieMap.AbstractMapNode<K,V> extends Object implements MapNode<K,V,PersistentTrieMap.AbstractMapNode<K,V>>, Serializable
See Also:
  • Field Details

  • Constructor Details

    • AbstractMapNode

      protected AbstractMapNode()
  • Method Details

    • isAllowedToEdit

      static final <T> boolean isAllowedToEdit(AtomicReference<?> x, AtomicReference<?> y)
    • dataArray

      public <T> ArrayView<T> dataArray(int category, int component)
      Description copied from interface: Node
      Creates an array abstraction for a subset of data stored in a node.
      Specified by:
      dataArray in interface Node
      Type Parameters:
      T - dynamic cast type of projected on view
      Parameters:
      category - the bit pattern of the (heterogeneous) data category
      component - the index to address into tuple
    • categoryArrayView0

      private <T> ArrayView<T> categoryArrayView0()
    • categoryArrayView1

      private <T> ArrayView<T> categoryArrayView1()
    • nodeArray

      public abstract ArrayView<PersistentTrieMap.AbstractMapNode<K,V>> nodeArray()
      Specified by:
      nodeArray in interface Node
    • hasNodes

      abstract boolean hasNodes()
    • nodeArity

      abstract int nodeArity()
    • getNode

      abstract PersistentTrieMap.AbstractMapNode<K,V> getNode(int index)
    • nodeIterator

      Deprecated.
    • hasPayload

      abstract boolean hasPayload()
    • payloadArity

      abstract int payloadArity()
    • getKey

      abstract K getKey(int index)
    • getValue

      abstract V getValue(int index)
    • getKeyValueEntry

      abstract Map.Entry<K,V> getKeyValueEntry(int index)
    • hasSlots

      @Deprecated abstract boolean hasSlots()
      Deprecated.
    • slotArity

      abstract int slotArity()
    • getSlot

      abstract Object getSlot(int index)
    • arity

      int arity()
      The arity of this trie node (i.e. number of values and nodes stored on this level).
      Returns:
      sum of nodes and values stored within
    • size

      int size()