MCPcopy Index your code
hub / github.com/processing/processing / set

Method set

core/src/processing/data/DoubleDict.java:388–395  ·  view source on GitHub ↗

@webref doubledict:method @brief Create a new key/value pair or change the value of one

(String key, double amount)

Source from the content-addressed store, hash-verified

386 * @brief Create a new key/value pair or change the value of one
387 */
388 public void set(String key, double amount) {
389 int index = index(key);
390 if (index == -1) {
391 create(key, amount);
392 } else {
393 values[index] = amount;
394 }
395 }
396
397
398 public void setIndex(int index, String key, double value) {

Callers 1

getPercentMethod · 0.95

Calls 2

indexMethod · 0.95
createMethod · 0.95

Tested by

no test coverage detected