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

Method oneRRset

src/main/java/core/org/xbill/DNS/Zone.java:245–262  ·  view source on GitHub ↗
(Object types, int type)

Source from the content-addressed store, hash-verified

243}
244
245private synchronized RRset
246oneRRset(Object types, int type) {
247 if (type == Type.ANY)
248 throw new IllegalArgumentException("oneRRset(ANY)");
249 if (types instanceof List) {
250 List list = (List) types;
251 for (int i = 0; i < list.size(); i++) {
252 RRset set = (RRset) list.get(i);
253 if (set.getType() == type)
254 return set;
255 }
256 } else {
257 RRset set = (RRset) types;
258 if (set.getType() == type)
259 return set;
260 }
261 return null;
262}
263
264private synchronized RRset
265findRRset(Name name, int type) {

Callers 5

validateMethod · 0.95
findRRsetMethod · 0.95
lookupMethod · 0.95
findExactMatchMethod · 0.95
nextMethod · 0.80

Calls 3

getTypeMethod · 0.95
sizeMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected