public void addRecord ( Record r ) { Name name = r . getName ( ) ; int rtype = r . getRRsetType ( ) ; synchronized ( this ) { RRset rrset = findRRset ( name , rtype ) ; if ( rrset == null ) { rrset = new RRset ( r ) ; addRRset ( name , rrset ) ; } else { rrset . addRR ( r ) ; } } }
Adds a Record to the Zone