Home / Class/ CacheKey Class — netty Architecture

CacheKey Class — netty Architecture

Architecture documentation for the CacheKey class in JdkDelegatingPrivateKeyMethod.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  18e4ca94_f602_3192_61c2_314e7da64e68["CacheKey"]
  0c9ac62a_66ca_a778_2f47_07cc7e3507f8["JdkDelegatingPrivateKeyMethod.java"]
  18e4ca94_f602_3192_61c2_314e7da64e68 -->|defined in| 0c9ac62a_66ca_a778_2f47_07cc7e3507f8
  89a0c752_49d9_3127_e049_0779fe0cc0d7["equals()"]
  18e4ca94_f602_3192_61c2_314e7da64e68 -->|method| 89a0c752_49d9_3127_e049_0779fe0cc0d7
  9ec5693b_15f9_e2e5_f4fd_c28890b8aedf["hashCode()"]
  18e4ca94_f602_3192_61c2_314e7da64e68 -->|method| 9ec5693b_15f9_e2e5_f4fd_c28890b8aedf
  11620690_a7bc_1191_c393_c3ca19b17cda["CacheKey()"]
  18e4ca94_f602_3192_61c2_314e7da64e68 -->|method| 11620690_a7bc_1191_c393_c3ca19b17cda

Relationship Graph

Source Code

handler/src/main/java/io/netty/handler/ssl/JdkDelegatingPrivateKeyMethod.java lines 249–274

    private static final class CacheKey {
        private final String jdkAlgorithm;
        private final String keyTypeName;
        private final int hashCode;

        @Override
        public boolean equals(Object o) {
            if (o == null || getClass() != o.getClass()) {
                return false;
            }
            CacheKey cacheKey = (CacheKey) o;
            return Objects.equals(cacheKey.jdkAlgorithm, jdkAlgorithm)
                    && Objects.equals(cacheKey.keyTypeName, keyTypeName);
        }

        @Override
        public int hashCode() {
            return hashCode;
        }

        CacheKey(String jdkAlgorithm, String keyTypeName) {
            this.jdkAlgorithm = jdkAlgorithm;
            this.keyTypeName = keyTypeName;
            this.hashCode = 31 * jdkAlgorithm.hashCode() + keyTypeName.hashCode();
        }
    }

Frequently Asked Questions

What is the CacheKey class?
CacheKey is a class in the netty codebase, defined in handler/src/main/java/io/netty/handler/ssl/JdkDelegatingPrivateKeyMethod.java.
Where is CacheKey defined?
CacheKey is defined in handler/src/main/java/io/netty/handler/ssl/JdkDelegatingPrivateKeyMethod.java at line 249.

Analyze Your Own Codebase

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

Try Supermodel Free