MCPcopy Create free account
hub / github.com/diyhi/bbs / toString

Method toString

src/main/java/cms/utils/CommentedProperties.java:276–291  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

274
275
276 public synchronized String toString() {
277 StringBuffer buffer = new StringBuffer();
278 Iterator<Map.Entry<String, String>> kvIter = keyCommentMap.entrySet().iterator();
279 buffer.append("[");
280 while(kvIter.hasNext()){
281 buffer.append("{");
282 Map.Entry<String, String> entry = kvIter.next();
283 String key = entry.getKey();
284 String val = getProperty(key);
285 String comment = entry.getValue();
286 buffer.append("key="+key+",value="+val+",comment="+comment);
287 buffer.append("}");
288 }
289 buffer.append("]");
290 return buffer.toString();
291 }
292
293 public boolean equals(Object o) {
294 //不考虑注释说明是否相同

Callers 2

load0Method · 0.45
saveConvertMethod · 0.45

Calls 5

getPropertyMethod · 0.95
hasNextMethod · 0.80
nextMethod · 0.80
getKeyMethod · 0.80
iteratorMethod · 0.45

Tested by

no test coverage detected