/** * True if this record is the same as some other record. */ public boolean equals(Object other) { return (other instanceof DNSRecord) && sameAs((DNSRecord) other); }
/** * True if this record would be supressed by an answer. * This is the case if this record would not have a * significantly longer TTL. */ boolean suppressedBy(DNSRecord other) { if (sameAs(other) && (other.ttl > ttl / 2)) { return true; } return false; }