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

Method removeIndex

core/src/processing/data/StringDict.java:448–463  ·  view source on GitHub ↗
(int index)

Source from the content-addressed store, hash-verified

446
447
448 public String removeIndex(int index) {
449 if (index < 0 || index >= count) {
450 throw new ArrayIndexOutOfBoundsException(index);
451 }
452 String value = values[index];
453 indices.remove(keys[index]);
454 for (int i = index; i < count-1; i++) {
455 keys[i] = keys[i+1];
456 values[i] = values[i+1];
457 indices.put(keys[i], i);
458 }
459 count--;
460 keys[count] = null;
461 values[count] = null;
462 return value;
463 }
464
465
466

Callers 1

removeMethod · 0.95

Calls 2

removeMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected