Home / Class/ StringPair Class — netty Architecture

StringPair Class — netty Architecture

Architecture documentation for the StringPair class in MqttProperties.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  812bd5d5_884c_81eb_95ea_c7441254df1a["StringPair"]
  5a4eca03_eb27_9264_bded_20eb1e48fedb["MqttProperties.java"]
  812bd5d5_884c_81eb_95ea_c7441254df1a -->|defined in| 5a4eca03_eb27_9264_bded_20eb1e48fedb
  adc60537_ca14_4da7_b221_c760a0c46ecb["StringPair()"]
  812bd5d5_884c_81eb_95ea_c7441254df1a -->|method| adc60537_ca14_4da7_b221_c760a0c46ecb
  e86503bd_38b8_43c9_389f_f1a8347c8e59["hashCode()"]
  812bd5d5_884c_81eb_95ea_c7441254df1a -->|method| e86503bd_38b8_43c9_389f_f1a8347c8e59
  6daa522f_167d_bd69_df80_b46383a74e87["equals()"]
  812bd5d5_884c_81eb_95ea_c7441254df1a -->|method| 6daa522f_167d_bd69_df80_b46383a74e87

Relationship Graph

Source Code

codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttProperties.java lines 225–251

    public static final class StringPair {
        public final String key;
        public final String value;

        public StringPair(String key, String value) {
            this.key = key;
            this.value = value;
        }

        @Override
        public int hashCode() {
            return key.hashCode() + 31 * value.hashCode();
        }

        @Override
        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
            if (obj == null || getClass() != obj.getClass()) {
                return false;
            }
            StringPair that = (StringPair) obj;

            return that.key.equals(this.key) && that.value.equals(this.value);
        }
    }

Frequently Asked Questions

What is the StringPair class?
StringPair is a class in the netty codebase, defined in codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttProperties.java.
Where is StringPair defined?
StringPair is defined in codec-mqtt/src/main/java/io/netty/handler/codec/mqtt/MqttProperties.java at line 225.

Analyze Your Own Codebase

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

Try Supermodel Free