MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / removeRecord

Method removeRecord

src/main/java/core/org/xbill/DNS/Message.java:184–192  ·  view source on GitHub ↗

Removes a record from a section of the Message, and adjusts the header. @see Record @see Section

(Record r, int section)

Source from the content-addressed store, hash-verified

182 * @see Section
183 */
184public boolean
185removeRecord(Record r, int section) {
186 if (sections[section] != null && sections[section].remove(r)) {
187 header.decCount(section);
188 return true;
189 }
190 else
191 return false;
192}
193
194/**
195 * Removes all records from a section of the Message, and adjusts the header.

Callers

nothing calls this directly

Calls 2

decCountMethod · 0.80
removeMethod · 0.45

Tested by

no test coverage detected