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

Method add

core/src/processing/data/IntDict.java:429–436  ·  view source on GitHub ↗

@webref intdict:method @brief Add to a value

(String key, int amount)

Source from the content-addressed store, hash-verified

427 * @brief Add to a value
428 */
429 public void add(String key, int amount) {
430 int index = index(key);
431 if (index == -1) {
432 create(key, amount);
433 } else {
434 values[index] += amount;
435 }
436 }
437
438
439 /**

Callers 2

incrementMethod · 0.95
subMethod · 0.95

Calls 2

indexMethod · 0.95
createMethod · 0.95

Tested by

no test coverage detected