Returns a String based view of the data. All the keys and values are stored as strings in the underlying map, but because we want to allow the addition of Object, which is then converted to a String, we aren't ourselves typed as String to String.
()
| 201 | * we aren't ourselves typed as String to String. |
| 202 | */ |
| 203 | public Map<String, String> getStringMap() { |
| 204 | Map<String, String> data = new HashMap<String, String>(); |
| 205 | for(Map.Entry<Object, Object> entry : this.entrySet()) { |
| 206 | data.put((String)entry.getKey(), (String)entry.getValue()); |
| 207 | } |
| 208 | return data; |
| 209 | } |
| 210 | } |
no test coverage detected