Home / Class/ ConnectionIdKey Class — netty Architecture

ConnectionIdKey Class — netty Architecture

Architecture documentation for the ConnectionIdKey class in ConnectionIdChannelMap.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  ce0fcdfb_2ea7_b3a5_d342_22b68a7919a7["ConnectionIdKey"]
  0988f996_25ca_884f_5efb_81b622804353["ConnectionIdChannelMap.java"]
  ce0fcdfb_2ea7_b3a5_d342_22b68a7919a7 -->|defined in| 0988f996_25ca_884f_5efb_81b622804353
  03fcb76a_20e2_133c_5b3f_9f965dc65d46["ConnectionIdKey()"]
  ce0fcdfb_2ea7_b3a5_d342_22b68a7919a7 -->|method| 03fcb76a_20e2_133c_5b3f_9f965dc65d46
  bf066467_9602_df12_3417_e897da098f16["equals()"]
  ce0fcdfb_2ea7_b3a5_d342_22b68a7919a7 -->|method| bf066467_9602_df12_3417_e897da098f16
  95bf06c4_4a47_8d35_c44c_45b2d7f115fc["hashCode()"]
  ce0fcdfb_2ea7_b3a5_d342_22b68a7919a7 -->|method| 95bf06c4_4a47_8d35_c44c_45b2d7f115fc
  7a0c3d60_1802_98b6_6470_3e2bbf3b4559["compareTo()"]
  ce0fcdfb_2ea7_b3a5_d342_22b68a7919a7 -->|method| 7a0c3d60_1802_98b6_6470_3e2bbf3b4559

Relationship Graph

Source Code

codec-classes-quic/src/main/java/io/netty/handler/codec/quic/ConnectionIdChannelMap.java lines 68–99

    private static final class ConnectionIdKey implements Comparable<ConnectionIdKey> {
        private final long hash;
        private final ByteBuffer key;

        ConnectionIdKey(long hash, ByteBuffer key) {
            this.hash = hash;
            this.key = key;
        }

        @Override
        public boolean equals(Object o) {
            if (this == o) {
                return true;
            }
            if (o == null || getClass() != o.getClass()) {
                return false;
            }
            ConnectionIdKey that = (ConnectionIdKey) o;
            return hash == that.hash && Objects.equals(key, that.key);
        }

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

        @Override
        public int compareTo(@NotNull ConnectionIdChannelMap.ConnectionIdKey o) {
            int result = Long.compare(hash, o.hash);
            return result != 0 ? result : key.compareTo(o.key);
        }
    }

Frequently Asked Questions

What is the ConnectionIdKey class?
ConnectionIdKey is a class in the netty codebase, defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/ConnectionIdChannelMap.java.
Where is ConnectionIdKey defined?
ConnectionIdKey is defined in codec-classes-quic/src/main/java/io/netty/handler/codec/quic/ConnectionIdChannelMap.java at line 68.

Analyze Your Own Codebase

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

Try Supermodel Free