equals() — netty Function Reference
Architecture documentation for the equals() function in DatagramDnsQuery.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 6ba937cf_6c77_fb91_f1f0_6589947e2a3a["equals()"] 214b5315_6216_9a50_d58d_182fefa0e435["DatagramDnsQuery"] 6ba937cf_6c77_fb91_f1f0_6589947e2a3a -->|defined in| 214b5315_6216_9a50_d58d_182fefa0e435 style 6ba937cf_6c77_fb91_f1f0_6589947e2a3a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-dns/src/main/java/io/netty/handler/codec/dns/DatagramDnsQuery.java lines 144–177
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!super.equals(obj)) {
return false;
}
if (!(obj instanceof AddressedEnvelope)) {
return false;
}
@SuppressWarnings("unchecked")
final AddressedEnvelope<?, SocketAddress> that = (AddressedEnvelope<?, SocketAddress>) obj;
if (sender() == null) {
if (that.sender() != null) {
return false;
}
} else if (!sender().equals(that.sender())) {
return false;
}
if (recipient() == null) {
if (that.recipient() != null) {
return false;
}
} else if (!recipient().equals(that.recipient())) {
return false;
}
return true;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does equals() do?
equals() is a function in the netty codebase, defined in codec-dns/src/main/java/io/netty/handler/codec/dns/DatagramDnsQuery.java.
Where is equals() defined?
equals() is defined in codec-dns/src/main/java/io/netty/handler/codec/dns/DatagramDnsQuery.java at line 144.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free