MCPcopy Index your code
hub / github.com/benfry/processing4 / add

Method add

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

Add to a value. @webref intlist:method @webBrief Add to a value

(int index, int amount)

Source from the content-addressed store, hash-verified

434 * @webBrief Add to a value
435 */
436 public void add(int index, int amount) {
437 if (index < count) {
438 data[index] += amount;
439 } else {
440 boundsProblem(index, "add");
441 }
442 }
443
444 /**
445 * Subtract from a value.

Callers 6

JSONArrayMethod · 0.45
appendMethod · 0.45
parseIntoMethod · 0.45
indexMethod · 0.45
setCategoryMethod · 0.45
readMethod · 0.45

Calls 1

boundsProblemMethod · 0.95

Tested by

no test coverage detected