Home / Function/ SimpleStringMap() — netty Function Reference

SimpleStringMap() — netty Function Reference

Architecture documentation for the SimpleStringMap() function in HttpMethodMapBenchmark.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  814cb0b8_41b4_a048_5b16_5206cd37a817["SimpleStringMap()"]
  da154cc5_5577_6968_9d78_8166b1bd42c6["SimpleStringMap"]
  814cb0b8_41b4_a048_5b16_5206cd37a817 -->|defined in| da154cc5_5577_6968_9d78_8166b1bd42c6
  6db5619e_7bb0_c119_97f8_51f6a5c45bc1["hashCode()"]
  814cb0b8_41b4_a048_5b16_5206cd37a817 -->|calls| 6db5619e_7bb0_c119_97f8_51f6a5c45bc1
  style 814cb0b8_41b4_a048_5b16_5206cd37a817 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

microbench/src/main/java/io/netty/handler/codec/http/HttpMethodMapBenchmark.java lines 118–129

        SimpleStringMap(SimpleStringMap.Node<T>... nodes) {
            values = (SimpleStringMap.Node<T>[]) new SimpleStringMap.Node[findNextPositivePowerOfTwo(nodes.length)];
            valuesMask = values.length - 1;
            for (SimpleStringMap.Node<T> node : nodes) {
                int i = hashCode(node.key) & valuesMask;
                if (values[i] != null) {
                    throw new IllegalArgumentException("index " + i + " collision between values: [" +
                            values[i].key + ", " + node.key + "]");
                }
                values[i] = node;
            }
        }

Domain

Subdomains

Calls

Frequently Asked Questions

What does SimpleStringMap() do?
SimpleStringMap() is a function in the netty codebase, defined in microbench/src/main/java/io/netty/handler/codec/http/HttpMethodMapBenchmark.java.
Where is SimpleStringMap() defined?
SimpleStringMap() is defined in microbench/src/main/java/io/netty/handler/codec/http/HttpMethodMapBenchmark.java at line 118.
What does SimpleStringMap() call?
SimpleStringMap() calls 1 function(s): hashCode.

Analyze Your Own Codebase

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

Try Supermodel Free