Home / Class/ Entry Class — netty Architecture

Entry Class — netty Architecture

Architecture documentation for the Entry class in ThreadDeathWatcher.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  9c892ee0_c10a_af62_4f31_d3dd3ee28887["Entry"]
  e4597d51_0c3d_f1d3_89b7_46f963dc242f["ThreadDeathWatcher.java"]
  9c892ee0_c10a_af62_4f31_d3dd3ee28887 -->|defined in| e4597d51_0c3d_f1d3_89b7_46f963dc242f
  ea438268_ec3e_4365_a5a4_45d5e1932d08["Entry()"]
  9c892ee0_c10a_af62_4f31_d3dd3ee28887 -->|method| ea438268_ec3e_4365_a5a4_45d5e1932d08
  ac97f0f5_782f_72cc_717f_734dbef98c8c["hashCode()"]
  9c892ee0_c10a_af62_4f31_d3dd3ee28887 -->|method| ac97f0f5_782f_72cc_717f_734dbef98c8c
  de1719c1_6bd0_2912_b90f_ed04e04960c1["equals()"]
  9c892ee0_c10a_af62_4f31_d3dd3ee28887 -->|method| de1719c1_6bd0_2912_b90f_ed04e04960c1

Relationship Graph

Source Code

common/src/main/java/io/netty/util/ThreadDeathWatcher.java lines 230–259

    private static final class Entry {
        final Thread thread;
        final Runnable task;
        final boolean isWatch;

        Entry(Thread thread, Runnable task, boolean isWatch) {
            this.thread = thread;
            this.task = task;
            this.isWatch = isWatch;
        }

        @Override
        public int hashCode() {
            return thread.hashCode() ^ task.hashCode();
        }

        @Override
        public boolean equals(Object obj) {
            if (obj == this) {
                return true;
            }

            if (!(obj instanceof Entry)) {
                return false;
            }

            Entry that = (Entry) obj;
            return thread == that.thread && task == that.task;
        }
    }

Frequently Asked Questions

What is the Entry class?
Entry is a class in the netty codebase, defined in common/src/main/java/io/netty/util/ThreadDeathWatcher.java.
Where is Entry defined?
Entry is defined in common/src/main/java/io/netty/util/ThreadDeathWatcher.java at line 230.

Analyze Your Own Codebase

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

Try Supermodel Free