()
| 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() { |
no test coverage detected