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

Method toString

src/main/java/core/org/xbill/DNS/Cache.java:830–844  ·  view source on GitHub ↗

Returns the contents of the Cache as a string.

()

Source from the content-addressed store, hash-verified

828 * Returns the contents of the Cache as a string.
829 */
830public String
831toString() {
832 StringBuffer sb = new StringBuffer();
833 synchronized (this) {
834 Iterator it = data.values().iterator();
835 while (it.hasNext()) {
836 Element [] elements = allElements(it.next());
837 for (int i = 0; i < elements.length; i++) {
838 sb.append(elements[i]);
839 sb.append("\n");
840 }
841 }
842 }
843 return sb.toString();
844}
845
846}

Callers 2

toStringMethod · 0.45
toStringMethod · 0.45

Calls 5

allElementsMethod · 0.95
hasNextMethod · 0.80
nextMethod · 0.80
iteratorMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected