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

Method set

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

@webref floatdict:method @brief Create a new key/value pair or change the value of one

(String key, float amount)

Source from the content-addressed store, hash-verified

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

Callers 3

getPercentMethod · 0.95
getPercentMethod · 0.95
getPercentMethod · 0.95

Calls 2

indexMethod · 0.95
createMethod · 0.95

Tested by

no test coverage detected