Home / Function/ replaceAll() — netty Function Reference

replaceAll() — netty Function Reference

Architecture documentation for the replaceAll() function in ConcurrentSkipListIntObjMultimap.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  33112848_a8f3_be93_e720_9f644e4606a9["replaceAll()"]
  d9a8da36_aab9_ab33_dc67_870b34dcd270["ConcurrentSkipListIntObjMultimap"]
  33112848_a8f3_be93_e720_9f644e4606a9 -->|defined in| d9a8da36_aab9_ab33_dc67_870b34dcd270
  46a88bc6_04d3_48e3_2fff_16407ed81e0c["baseHead()"]
  33112848_a8f3_be93_e720_9f644e4606a9 -->|calls| 46a88bc6_04d3_48e3_2fff_16407ed81e0c
  style 33112848_a8f3_be93_e720_9f644e4606a9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/main/java/io/netty/util/concurrent/ConcurrentSkipListIntObjMultimap.java lines 1539–1554

    public void replaceAll(BiFunction<Integer, ? super V, ? extends V> function) {
        requireNonNull(function);
        Node<V> b, n; V v;
        if ((b = baseHead()) != null) {
            while ((n = b.next) != null) {
                while ((v = n.val) != null) {
                    V r = function.apply(n.key, v);
                    requireNonNull(r);
                    if (VAL.compareAndSet(n, v, r)) {
                        break;
                    }
                }
                b = n;
            }
        }
    }

Domain

Subdomains

Calls

Frequently Asked Questions

What does replaceAll() do?
replaceAll() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/concurrent/ConcurrentSkipListIntObjMultimap.java.
Where is replaceAll() defined?
replaceAll() is defined in common/src/main/java/io/netty/util/concurrent/ConcurrentSkipListIntObjMultimap.java at line 1539.
What does replaceAll() call?
replaceAll() calls 1 function(s): baseHead.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free