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

Method addToMapFor

code/src/java/pcgen/cdom/util/MapKeyMap.java:93–97  ·  view source on GitHub ↗

Adds the given value to the List for the given ListKey. The null value cannot be used as a key in a MapKeyMap. This method will automatically initialize the map for the given primary key if there is not already a Map for that primary key. This method is reference-semantic and this MapKeyMap will ma

(MapKey<K, V> key1, K key2, V value)

Source from the content-addressed store, hash-verified

91 * The value to be added to the List for the given key.
92 */
93 @SuppressWarnings("unchecked")
94 public <K, V> V addToMapFor(MapKey<K, V> key1, K key2, V value)
95 {
96 return (V) map.put(key1, key2, value);
97 }
98
99 /**
100 * Returns true if this MapKeyMap contains a Map for the given MapKey. This

Callers 15

setUpMethod · 0.45
setUpMethod · 0.45
testUnparseNullMethod · 0.45
testUnparseLegalMethod · 0.45
testUnparseNegativeMethod · 0.45
testUnparseZeroMethod · 0.45
testUnparseMultipleMethod · 0.45
setUpMethod · 0.45
testAddToMapForMethod · 0.45

Calls 1

putMethod · 0.65

Tested by 14

setUpMethod · 0.36
setUpMethod · 0.36
testUnparseNullMethod · 0.36
testUnparseLegalMethod · 0.36
testUnparseNegativeMethod · 0.36
testUnparseZeroMethod · 0.36
testUnparseMultipleMethod · 0.36
setUpMethod · 0.36
testAddToMapForMethod · 0.36