MCPcopy Create free account
hub / github.com/GateNLP/gate-core / getStringMap

Method getStringMap

src/main/java/gate/util/OptionsMap.java:203–209  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

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}

Callers 1

writeUserConfigMethod · 0.80

Calls 4

getKeyMethod · 0.65
getValueMethod · 0.65
entrySetMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected