/** * True if this record is the same as some other record. */ boolean sameAs(DNSRecord other) { return super.equals(other) && sameValue((DNSRecord) other); }
/** * Get a matching DNS entry from the table (using equals). * Returns the entry that was found. */ public synchronized DNSEntry get(DNSEntry entry) { for (CacheNode node = find(entry.getName()); node != null; node = node.next) { if (node.value.equals(entry)) { return node.value; } } return null; }