Write the content of the ArrayList in a readable format
- 引数:
-
| list | the list to get the values from |
| listName | give the prefix names for values |
| writeCountKey | should we write the count keys |
- 戻り値:
String conversion for the list content
ReadWrite.java の 95 行で定義されています。 00097 {
00098 if (list == null)
00099 return "";
00100 StringBuffer buffer = new StringBuffer();
00101 int size = list.size();
00102 if (writeCountKey)
00103 buffer.append(listName + ".items.count=" + size
00104 + System.getProperty("line.separator"));
00105 for (int i = 0; i < size; i++)
00106 buffer.append(listName + "." + i + "=" + list.get(i)
00107 + System.getProperty("line.separator"));
00108 return buffer.toString();
00109 }
|