Home / Function/ hashCode() — netty Function Reference

hashCode() — netty Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

microbench/src/main/java/io/netty/handler/codec/http/HttpMethodMapBenchmark.java lines 136–141

        private static int hashCode(String name) {
            // This hash code needs to produce a unique index for each HttpMethod. If new methods are added this
            // algorithm will need to be adjusted. The goal is to have each enum name's hash value correlate to a unique
            // index in the values array.
            return name.hashCode() >>> 6;
        }

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free