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

Method findRRset

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

Determines if an RRset with the given name and type is already present in the given section. @see RRset @see Section

(Name name, int type, int section)

Source from the content-addressed store, hash-verified

232 * @see Section
233 */
234public boolean
235findRRset(Name name, int type, int section) {
236 if (sections[section] == null)
237 return false;
238 for (int i = 0; i < sections[section].size(); i++) {
239 Record r = (Record) sections[section].get(i);
240 if (r.getType() == type && name.equals(r.getName()))
241 return true;
242 }
243 return false;
244}
245
246/**
247 * Determines if an RRset with the given name and type is already

Callers 1

addRRsetMethod · 0.45

Calls 5

getTypeMethod · 0.95
getNameMethod · 0.95
sizeMethod · 0.45
getMethod · 0.45
equalsMethod · 0.45

Tested by

no test coverage detected