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

Method removeIndex

core/src/processing/data/IntDict.java:606–621  ·  view source on GitHub ↗
(int index)

Source from the content-addressed store, hash-verified

604
605
606 public int removeIndex(int index) {
607 if (index < 0 || index >= count) {
608 throw new ArrayIndexOutOfBoundsException(index);
609 }
610 int value = values[index];
611 indices.remove(keys[index]);
612 for (int i = index; i < count-1; i++) {
613 keys[i] = keys[i+1];
614 values[i] = values[i+1];
615 indices.put(keys[i], i);
616 }
617 count--;
618 keys[count] = null;
619 values[count] = 0;
620 return value;
621 }
622
623
624 public void swap(int a, int b) {

Callers 1

removeMethod · 0.95

Calls 2

removeMethod · 0.45
putMethod · 0.45

Tested by

no test coverage detected