MCPcopy Index your code
hub / github.com/apache/groovy / toString

Method toString

src/main/java/groovy/lang/SpreadMap.java:151–166  ·  view source on GitHub ↗

@return the string expression of this

()

Source from the content-addressed store, hash-verified

149 * @return the string expression of <code>this</code>
150 */
151 @Override
152 public String toString() {
153 if (isEmpty()) {
154 return "*:[:]";
155 }
156 StringBuilder sb = new StringBuilder("*:[");
157 Iterator iter = keySet().iterator();
158 while (iter.hasNext()) {
159 Object key = iter.next();
160 sb.append(key).append(":").append(get(key));
161 if (iter.hasNext())
162 sb.append(", ");
163 }
164 sb.append("]");
165 return sb.toString();
166 }
167}

Callers

nothing calls this directly

Calls 8

iteratorMethod · 0.65
getMethod · 0.65
toStringMethod · 0.65
isEmptyMethod · 0.45
keySetMethod · 0.45
hasNextMethod · 0.45
nextMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected