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

Method removeIndex

core/src/processing/data/FloatDict.java:622–637  ·  view source on GitHub ↗
(int index)

Source from the content-addressed store, hash-verified

620
621
622 public float removeIndex(int index) {
623 if (index < 0 || index >= count) {
624 throw new ArrayIndexOutOfBoundsException(index);
625 }
626 float value = values[index];
627 indices.remove(keys[index]);
628 for (int i = index; i < count-1; i++) {
629 keys[i] = keys[i+1];
630 values[i] = values[i+1];
631 indices.put(keys[i], i);
632 }
633 count--;
634 keys[count] = null;
635 values[count] = 0;
636 return value;
637 }
638
639
640 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