MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / setLength

Method setLength

vm/JavaAPI/src/java/lang/StringBuffer.java:317–319  ·  view source on GitHub ↗

Sets the length of this string buffer. This string buffer is altered to represent a new character sequence whose length is specified by the argument. For every nonnegative index less than newLength, the character at index in the new character sequence is the same as the character at index in the old

(int newLength)

Source from the content-addressed store, hash-verified

315 * The newLength argument must be greater than or equal to 0.
316 */
317 public void setLength(int newLength){
318 internal.setLength(newLength);
319 }
320
321 /**
322 * Converts to a string representing the data in this string buffer. A new String object is allocated and initialized to contain the character sequence currently represented by this string buffer. This String is then returned. Subsequent changes to the string buffer do not affect the contents of the String.

Callers 10

bracketMethod · 0.95
runTestMethod · 0.95
toStringMethod · 0.95
invoke46Method · 0.45
invoke2Method · 0.45
typeMethod · 0.45
enterMethod · 0.45
elideTrailingCommaMethod · 0.45
canonicalizeNumberMethod · 0.45
getOrderMethod · 0.45

Calls

no outgoing calls

Tested by 2

runTestMethod · 0.76
getOrderMethod · 0.36