MCPcopy
hub / github.com/libgdx/libgdx / clear

Method clear

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

Clears this CharArray. This method does not reduce the size of the internal character buffer. To do that, call clear() followed by #shrink(). This method is the same as #setLength(int) called with zero and is provided to match the API of Collections.

()

Source from the content-addressed store, hash-verified

387 * <p>
388 * This method is the same as {@link #setLength(int)} called with zero and is provided to match the API of Collections. */
389 public void clear () {
390 size = 0;
391 }
392
393 /** Sets the array size, leaving any values beyond the current size undefined.
394 * @return {@link #items} */

Callers 8

stackTestMethod · 0.95
arrayOperationsTestMethod · 0.95
appendTestMethod · 0.95
appendlnTestMethod · 0.95
paddingTestMethod · 0.95
iteratorTestMethod · 0.95
setMethod · 0.95
toStringAndClearMethod · 0.95

Calls

no outgoing calls

Tested by 6

stackTestMethod · 0.76
arrayOperationsTestMethod · 0.76
appendTestMethod · 0.76
appendlnTestMethod · 0.76
paddingTestMethod · 0.76
iteratorTestMethod · 0.76