MCPcopy Create free account
hub / github.com/PCGen/pcgen / put

Method put

code/src/java/pcgen/io/Cache.java:72–84  ·  view source on GitHub ↗

Put into the map @param key @param value

(String key, String value)

Source from the content-addressed store, hash-verified

70 * @param value
71 */
72 public void put(String key, String value)
73 {
74 if (map.containsKey(key))
75 {
76 map.get(key).add(value);
77 }
78 else
79 {
80 final List<String> values = new ArrayList<>();
81 values.add(value);
82 map.put(key, values);
83 }
84 }
85}

Callers 1

appendClassLinesMethod · 0.95

Calls 4

containsKeyMethod · 0.65
addMethod · 0.65
getMethod · 0.65
putMethod · 0.65

Tested by

no test coverage detected