MCPcopy Create free account
hub / github.com/benfry/processing4 / add

Method add

core/src/processing/data/LongDict.java:435–442  ·  view source on GitHub ↗

Add to a value @webref intdict:method @webBrief Add to a value

(String key, long amount)

Source from the content-addressed store, hash-verified

433 * @webBrief Add to a value
434 */
435 public void add(String key, long amount) {
436 int index = index(key);
437 if (index == -1) {
438 create(key, amount);
439 } else {
440 values[index] += amount;
441 }
442 }
443
444
445 /**

Callers 2

incrementMethod · 0.95
subMethod · 0.95

Calls 2

indexMethod · 0.95
createMethod · 0.95

Tested by

no test coverage detected