@Override public int hashCode() { return id() * 31 + (this instanceof DnsQuery? 0 : 1); }
@Override public int hashCode() { return id() * 31 + (this instanceof DnsQuery? 0 : 1); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof DnsMessage)) { return false; } final DnsMessage that = (DnsMessage) obj; if (id() != that.id()) { return false; } if (this instanceof DnsQuery) { if (!(that instanceof DnsQuery)) { return false; } } else if (that instanceof DnsQuery) { return false; } return true; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof DnsMessage)) { return false; } final DnsMessage that = (DnsMessage) obj; if (id() != that.id()) { return false; } if (this instanceof DnsQuery) { if (!(that instanceof DnsQuery)) { return false; } } else if (that instanceof DnsQuery) { return false; } return true; }
@Override public int hashCode() { return id() * 31 + (this instanceof DnsQuery? 0 : 1); }
@Override public int hashCode() { return id() * 31 + (this instanceof DnsQuery? 0 : 1); }
@Override public int hashCode() { return id() * 31 + (this instanceof DnsQuery? 0 : 1); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof DnsMessage)) { return false; } final DnsMessage that = (DnsMessage) obj; if (id() != that.id()) { return false; } if (this instanceof DnsQuery) { if (!(that instanceof DnsQuery)) { return false; } } else if (that instanceof DnsQuery) { return false; } return true; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof DnsMessage)) { return false; } final DnsMessage that = (DnsMessage) obj; if (id() != that.id()) { return false; } if (this instanceof DnsQuery) { if (!(that instanceof DnsQuery)) { return false; } } else if (that instanceof DnsQuery) { return false; } return true; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof DnsMessage)) { return false; } final DnsMessage that = (DnsMessage) obj; if (id() != that.id()) { return false; } if (this instanceof DnsQuery) { if (!(that instanceof DnsQuery)) { return false; } } else if (that instanceof DnsQuery) { return false; } return true; }