MCPcopy Create free account
hub / github.com/apache/kafka / equals

Method equals

clients/src/main/java/org/apache/kafka/common/Node.java:62–81  ·  view source on GitHub ↗
(Object obj)

Source from the content-addressed store, hash-verified

60 }
61
62 @Override
63 public boolean equals(Object obj) {
64 if (this == obj)
65 return true;
66 if (obj == null)
67 return false;
68 if (getClass() != obj.getClass())
69 return false;
70 Node other = (Node) obj;
71 if (host == null) {
72 if (other.host != null)
73 return false;
74 } else if (!host.equals(other.host))
75 return false;
76 if (id != other.id)
77 return false;
78 if (port != other.port)
79 return false;
80 return true;
81 }
82
83 @Override
84 public String toString() {

Callers 1

parseAcksMethod · 0.45

Calls 1

getClassMethod · 0.80

Tested by

no test coverage detected