Home / Class/ IntEntry Class — netty Architecture

IntEntry Class — netty Architecture

Architecture documentation for the IntEntry class in ConcurrentSkipListIntObjMultimap.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  6dcb7afb_287c_b835_9533_c57f38154157["IntEntry"]
  2dc2d6e5_c15a_8f05_f928_659448d21a9f["ConcurrentSkipListIntObjMultimap.java"]
  6dcb7afb_287c_b835_9533_c57f38154157 -->|defined in| 2dc2d6e5_c15a_8f05_f928_659448d21a9f
  e04eb9e2_7730_6aae_6127_80c5917f2bba["IntEntry()"]
  6dcb7afb_287c_b835_9533_c57f38154157 -->|method| e04eb9e2_7730_6aae_6127_80c5917f2bba
  00bd760e_01df_a9f5_f33f_91c003a1455c["getKey()"]
  6dcb7afb_287c_b835_9533_c57f38154157 -->|method| 00bd760e_01df_a9f5_f33f_91c003a1455c
  8b33436a_9299_cc7a_3a33_273ba398b13a["V()"]
  6dcb7afb_287c_b835_9533_c57f38154157 -->|method| 8b33436a_9299_cc7a_3a33_273ba398b13a
  9e959d43_e1c8_8fa8_7a61_d5c0c6f8df6d["equals()"]
  6dcb7afb_287c_b835_9533_c57f38154157 -->|method| 9e959d43_e1c8_8fa8_7a61_d5c0c6f8df6d
  43b5b7b8_e925_107e_9984_4120b91a399b["hashCode()"]
  6dcb7afb_287c_b835_9533_c57f38154157 -->|method| 43b5b7b8_e925_107e_9984_4120b91a399b
  380f2d71_1fa3_0122_36bb_fc61b84d193f["String()"]
  6dcb7afb_287c_b835_9533_c57f38154157 -->|method| 380f2d71_1fa3_0122_36bb_fc61b84d193f
  15119aea_1952_35d1_61bb_ef656eaf332c["compareTo()"]
  6dcb7afb_287c_b835_9533_c57f38154157 -->|method| 15119aea_1952_35d1_61bb_ef656eaf332c

Relationship Graph

Source Code

common/src/main/java/io/netty/util/concurrent/ConcurrentSkipListIntObjMultimap.java lines 343–392

    public static final class IntEntry<V> implements Comparable<IntEntry<V>> {
        private final int key;
        private final V value;

        public IntEntry(int key, V value) {
            this.key = key;
            this.value = value;
        }

        /**
         * Get the corresponding key.
         */
        public int getKey() {
            return key;
        }

        /**
         * Get the corresponding value.
         */
        public V getValue() {
            return value;
        }

        @Override
        public boolean equals(Object o) {
            if (!(o instanceof IntEntry)) {
                return false;
            }

            IntEntry<?> intEntry = (IntEntry<?>) o;
            return key == intEntry.key && Objects.equals(value, intEntry.value);
        }

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

        @Override
        public String toString() {
            return "IntEntry[" + key + " => " + value + ']';
        }

        @Override
        public int compareTo(IntEntry<V> o) {
            return Integer.compare(key, o.key);
        }
    }

Frequently Asked Questions

What is the IntEntry class?
IntEntry is a class in the netty codebase, defined in common/src/main/java/io/netty/util/concurrent/ConcurrentSkipListIntObjMultimap.java.
Where is IntEntry defined?
IntEntry is defined in common/src/main/java/io/netty/util/concurrent/ConcurrentSkipListIntObjMultimap.java at line 343.

Analyze Your Own Codebase

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

Try Supermodel Free