Class PersistentTrieMap.AbstractMapNode<K,​V>

    • Constructor Detail

      • AbstractMapNode

        protected AbstractMapNode()
    • Method Detail

      • isAllowedToEdit

        static final <T> boolean isAllowedToEdit​(java.util.concurrent.atomic.AtomicReference<?> x,
                                                 java.util.concurrent.atomic.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()
      • hasNodes

        abstract boolean hasNodes()
      • nodeArity

        abstract int nodeArity()
      • hasPayload

        abstract boolean hasPayload()
      • payloadArity

        abstract int payloadArity()
      • getKey

        abstract K getKey​(int index)
      • getValue

        abstract V getValue​(int index)
      • getKeyValueEntry

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

        @Deprecated
        abstract boolean hasSlots()
        Deprecated.
      • slotArity

        abstract int slotArity()
      • getSlot

        abstract java.lang.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()