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

Method next

src/main/java/core/org/xbill/DNS/Zone.java:62–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60 }
61
62 public Object
63 next() {
64 if (!hasNext()) {
65 throw new NoSuchElementException();
66 }
67 if (current == null) {
68 wantLastSOA = false;
69 return oneRRset(originNode, Type.SOA);
70 }
71 Object set = current[count++];
72 if (count == current.length) {
73 current = null;
74 while (zentries.hasNext()) {
75 Map.Entry entry = (Map.Entry) zentries.next();
76 if (entry.getKey().equals(origin))
77 continue;
78 RRset [] sets = allRRsets(entry.getValue());
79 if (sets.length == 0)
80 continue;
81 current = sets;
82 count = 0;
83 break;
84 }
85 }
86 return set;
87 }
88
89 public void
90 remove() {

Callers 15

stopIfRunningMethod · 0.80
closeAndClearDuplexMethod · 0.80
findSunJVMMethod · 0.80
iteratorToStringMethod · 0.80
validateMethod · 0.80
fromXFRMethod · 0.80
nodeToStringMethod · 0.80
toMasterFileMethod · 0.80
toArrayMethod · 0.80
toStringMethod · 0.80
mapToWireMethod · 0.80
toWireMethod · 0.80

Calls 6

hasNextMethod · 0.95
oneRRsetMethod · 0.80
allRRsetsMethod · 0.80
equalsMethod · 0.45
getKeyMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected