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

Method set

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

Create a new key/value pair or change the value of one. @webref intdict:method @webBrief Create a new key/value pair or change the value of one

(String key, long amount)

Source from the content-addressed store, hash-verified

374 * @webBrief Create a new key/value pair or change the value of one
375 */
376 public void set(String key, long amount) {
377 int index = index(key);
378 if (index == -1) {
379 create(key, amount);
380 } else {
381 values[index] = amount;
382 }
383 }
384
385
386 public void setIndex(int index, String key, long value) {

Callers

nothing calls this directly

Calls 2

indexMethod · 0.95
createMethod · 0.95

Tested by

no test coverage detected