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

Method iteratorToString

src/main/java/core/org/xbill/DNS/RRset.java:224–236  ·  view source on GitHub ↗
(Iterator it)

Source from the content-addressed store, hash-verified

222}
223
224private String
225iteratorToString(Iterator it) {
226 StringBuffer sb = new StringBuffer();
227 while (it.hasNext()) {
228 Record rr = (Record) it.next();
229 sb.append("[");
230 sb.append(rr.rdataToString());
231 sb.append("]");
232 if (it.hasNext())
233 sb.append(" ");
234 }
235 return sb.toString();
236}
237
238/** Converts the RRset to a String */
239public String

Callers 1

toStringMethod · 0.95

Calls 5

rdataToStringMethod · 0.95
hasNextMethod · 0.80
nextMethod · 0.80
appendMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected