Home / Function/ hashCode() — netty Function Reference

hashCode() — netty Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  6f4bc0e5_3583_ec32_6b40_196af3f6bd63["hashCode()"]
  3ae88156_98c6_a64e_0c88_c32ba22ffd4c["DefaultFullHttpResponse"]
  6f4bc0e5_3583_ec32_6b40_196af3f6bd63 -->|defined in| 3ae88156_98c6_a64e_0c88_c32ba22ffd4c
  aa4eeefb_0d57_1b5f_7546_31c159f69a0c["refCnt()"]
  6f4bc0e5_3583_ec32_6b40_196af3f6bd63 -->|calls| aa4eeefb_0d57_1b5f_7546_31c159f69a0c
  style 6f4bc0e5_3583_ec32_6b40_196af3f6bd63 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/main/java/io/netty/handler/codec/http/DefaultFullHttpResponse.java lines 217–236

    @Override
    public int hashCode() {
        int hash = this.hash;
        if (hash == 0) {
            if (ByteBufUtil.isAccessible(content())) {
                try {
                    hash = 31 + content().hashCode();
                } catch (IllegalReferenceCountException ignored) {
                    // Handle race condition between checking refCnt() == 0 and using the object.
                    hash = 31;
                }
            } else {
                hash = 31;
            }
            hash = 31 * hash + trailingHeaders().hashCode();
            hash = 31 * hash + super.hashCode();
            this.hash = hash;
        }
        return hash;
    }

Subdomains

Calls

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/DefaultFullHttpResponse.java.
Where is hashCode() defined?
hashCode() is defined in codec-http/src/main/java/io/netty/handler/codec/http/DefaultFullHttpResponse.java at line 217.
What does hashCode() call?
hashCode() calls 1 function(s): refCnt.

Analyze Your Own Codebase

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

Try Supermodel Free