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

Method removeIndex

gdx/src/com/badlogic/gdx/utils/CharArray.java:312–322  ·  view source on GitHub ↗

Removes and returns the item at the specified index.

(int index)

Source from the content-addressed store, hash-verified

310
311 /** Removes and returns the item at the specified index. */
312 public char removeIndex (int index) {
313 validateIndex(index);
314 char[] items = this.items;
315 char value = items[index];
316 size--;
317 if (ordered)
318 System.arraycopy(items, index + 1, items, index, size - index);
319 else
320 items[index] = items[size];
321 return value;
322 }
323
324 /** Removes the items between the specified indices, inclusive. */
325 public void removeRange (int start, int end) {

Callers 3

removeTestMethod · 0.95
removeValueMethod · 0.95
removeAllMethod · 0.95

Calls 1

validateIndexMethod · 0.95

Tested by 1

removeTestMethod · 0.76