Home / Function/ hashCode() — netty Function Reference

hashCode() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  0b35f243_3cfb_8743_6179_4da4a132c012["hashCode()"]
  059554be_05d5_d829_931e_2aaea4cf530a["HttpVersion"]
  0b35f243_3cfb_8743_6179_4da4a132c012 -->|defined in| 059554be_05d5_d829_931e_2aaea4cf530a
  9d016a79_cca8_743a_9211_0a0f1dadc0a3["majorVersion()"]
  0b35f243_3cfb_8743_6179_4da4a132c012 -->|calls| 9d016a79_cca8_743a_9211_0a0f1dadc0a3
  2ccb70fd_45da_d943_dcd2_0557e494ceb0["minorVersion()"]
  0b35f243_3cfb_8743_6179_4da4a132c012 -->|calls| 2ccb70fd_45da_d943_dcd2_0557e494ceb0
  style 0b35f243_3cfb_8743_6179_4da4a132c012 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/main/java/io/netty/handler/codec/http/HttpVersion.java lines 269–273

    @Override
    public int hashCode() {
        return (protocolName().hashCode() * 31 + majorVersion()) * 31 +
               minorVersion();
    }

Subdomains

Frequently Asked Questions

What does hashCode() do?
hashCode() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/HttpVersion.java.
Where is hashCode() defined?
hashCode() is defined in codec-http/src/main/java/io/netty/handler/codec/http/HttpVersion.java at line 269.
What does hashCode() call?
hashCode() calls 2 function(s): majorVersion, minorVersion.

Analyze Your Own Codebase

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

Try Supermodel Free