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

Method add

core/src/processing/data/FloatDict.java:405–412  ·  view source on GitHub ↗

@webref floatdict:method @brief Add to a value

(String key, float amount)

Source from the content-addressed store, hash-verified

403 * @brief Add to a value
404 */
405 public void add(String key, float amount) {
406 int index = index(key);
407 if (index == -1) {
408 create(key, amount);
409 } else {
410 values[index] += amount;
411 }
412 }
413
414
415 /**

Callers 1

subMethod · 0.95

Calls 2

indexMethod · 0.95
createMethod · 0.95

Tested by

no test coverage detected