replace() — netty Function Reference
Architecture documentation for the replace() function in ConcurrentSkipListIntObjMultimap.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 0fbf9d08_a59a_4f48_733f_5eff8a8ca4ec["replace()"] d9a8da36_aab9_ab33_dc67_870b34dcd270["ConcurrentSkipListIntObjMultimap"] 0fbf9d08_a59a_4f48_733f_5eff8a8ca4ec -->|defined in| d9a8da36_aab9_ab33_dc67_870b34dcd270 e6377398_2342_36cb_6b52_ad257316c9a9["findNode()"] 0fbf9d08_a59a_4f48_733f_5eff8a8ca4ec -->|calls| e6377398_2342_36cb_6b52_ad257316c9a9 9e959d43_e1c8_8fa8_7a61_d5c0c6f8df6d["equals()"] 0fbf9d08_a59a_4f48_733f_5eff8a8ca4ec -->|calls| 9e959d43_e1c8_8fa8_7a61_d5c0c6f8df6d style 0fbf9d08_a59a_4f48_733f_5eff8a8ca4ec fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
common/src/main/java/io/netty/util/concurrent/ConcurrentSkipListIntObjMultimap.java lines 1276–1296
public boolean replace(int key, V oldValue, V newValue) {
if (key == noKey) {
throw new IllegalArgumentException();
}
requireNonNull(oldValue);
requireNonNull(newValue);
for (;;) {
Node<V> n; V v;
if ((n = findNode(key)) == null) {
return false;
}
if ((v = n.val) != null) {
if (!oldValue.equals(v)) {
return false;
}
if (VAL.compareAndSet(n, v, newValue)) {
return true;
}
}
}
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does replace() do?
replace() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/concurrent/ConcurrentSkipListIntObjMultimap.java.
Where is replace() defined?
replace() is defined in common/src/main/java/io/netty/util/concurrent/ConcurrentSkipListIntObjMultimap.java at line 1276.
What does replace() call?
replace() calls 2 function(s): equals, findNode.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free