MCPcopy
hub / github.com/libgdx/libgdx / toStringAndClear

Method toStringAndClear

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

Returns the current String representation and clears this CharArray. @return a String containing the characters in this instance.

()

Source from the content-addressed store, hash-verified

2033 /** Returns the current String representation and clears this CharArray.
2034 * @return a String containing the characters in this instance. */
2035 public String toStringAndClear () {
2036 String string = toString();
2037 clear();
2038 return string;
2039 }
2040
2041 /** Trims this CharArray by removing characters less than or equal to a space from the beginning and end. */
2042 public CharArray trim () {

Callers 1

toStringAndClearTestMethod · 0.95

Calls 2

toStringMethod · 0.95
clearMethod · 0.95

Tested by 1

toStringAndClearTestMethod · 0.76