public boolean
sameRRset(Record rec) {
	return (getRRsetType() == rec.getRRsetType() &&
		dclass == rec.dclass &&
		name.equals(rec.name));
}
Determines if two Records could be part of the same RRset.
This compares the name, type, and class of the Records; the ttl and
rdata are not compared.
src/main/java/core/org/xbill/DNS/Record.java