Class PersistentTrieSet.AbstractSetNode<K>

    • Constructor Detail

      • AbstractSetNode

        protected AbstractSetNode()
    • 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()
      • hasNodes

        abstract boolean hasNodes()
      • nodeArity

        abstract int nodeArity()
      • 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
      • localPayloadHashCode

        abstract int localPayloadHashCode()
      • iterator

        public java.util.Iterator<K> iterator()
        Specified by:
        iterator in interface java.lang.Iterable<K>
      • spliterator

        public java.util.Spliterator<K> spliterator()
        Specified by:
        spliterator in interface java.lang.Iterable<K>
      • stream

        public java.util.stream.Stream<K> stream()