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

Method add

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

@webref doubledict:method @brief Add to a value

(String key, double amount)

Source from the content-addressed store, hash-verified

418 * @brief Add to a value
419 */
420 public void add(String key, double amount) {
421 int index = index(key);
422 if (index == -1) {
423 create(key, amount);
424 } else {
425 values[index] += amount;
426 }
427 }
428
429
430 /**

Callers 1

subMethod · 0.95

Calls 2

indexMethod · 0.95
createMethod · 0.95

Tested by

no test coverage detected