/**@class java.lang.StringBuffer implements java.lang.Appendable implements java.io.Serializable implements java.lang.CharSequence @extends java.lang.AbstractStringBuilder A modifiable {@link java.lang.CharSequence sequence of characters} for use in creating strings, where all accesses are synchronized. This class has mostly been replaced by {@link java.lang.StringBuilder} because this synchronization is rarely useful. This class is mainly used to interact with legacy APIs that expose it. <p>For particularly complex string-building needs, consider {@link java.util.Formatter}. <p>The majority of the modification methods on this class return {@code this} so that method calls can be chained together. For example: {@code new StringBuffer("a").append("b").append("c").toString()}. @see CharSequence @see Appendable @see StringBuilder @see String @see String#format @since 1.0 */ var StringBuffer = { /**Adds the string representation of the specified boolean to the end of this StringBuffer. <p> If the argument is {@code true} the string {@code "true"} is appended, otherwise the string {@code "false"} is appended. @param {Boolean} b the boolean to append. @return {Object {java.lang.StringBuffer}} this StringBuffer. @see String#valueOf(boolean) */ append : function( ) {}, /**Adds the specified character to the end of this buffer. @param {String} ch the character to append. @return {Object {java.lang.StringBuffer}} this StringBuffer. @see String#valueOf(char) */ append : function( ) {}, /**Adds the string representation of the specified double to the end of this StringBuffer. @param {Number} d the double to append. @return {Object {java.lang.StringBuffer}} this StringBuffer. @see String#valueOf(double) */ append : function( ) {}, /**Adds the string representation of the specified float to the end of this StringBuffer. @param {Number} f the float to append. @return {Object {java.lang.StringBuffer}} this StringBuffer. @see String#valueOf(float) */ append : function( ) {}, /**Adds the string representation of the specified integer to the end of this StringBuffer. @param {Number} i the integer to append. @return {Object {java.lang.StringBuffer}} this StringBuffer. @see String#valueOf(int) */ append : function( ) {}, /**Adds the string representation of the specified long to the end of this StringBuffer. @param {Number} l the long to append. @return {Object {java.lang.StringBuffer}} this StringBuffer. @see String#valueOf(long) */ append : function( ) {}, /**Adds the string representation of the specified object to the end of this StringBuffer. <p> If the specified object is {@code null} the string {@code "null"} is appended, otherwise the objects {@code toString} is used to get its string representation. @param {Object {Object}} obj the object to append (may be null). @return {Object {java.lang.StringBuffer}} this StringBuffer. @see String#valueOf(Object) */ append : function( ) {}, /**Adds the specified string to the end of this buffer. <p> If the specified string is {@code null} the string {@code "null"} is appended, otherwise the contents of the specified string is appended. @param {String} string the string to append (may be null). @return {Object {java.lang.StringBuffer}} this StringBuffer. */ append : function( ) {}, /**Adds the specified StringBuffer to the end of this buffer. <p> If the specified StringBuffer is {@code null} the string {@code "null"} is appended, otherwise the contents of the specified StringBuffer is appended. @param {Object {StringBuffer}} sb the StringBuffer to append (may be null). @return {Object {java.lang.StringBuffer}} this StringBuffer. @since 1.4 */ append : function( ) {}, /**Adds the character array to the end of this buffer. @param {Object {char[]}} chars the character array to append. @return {Object {java.lang.StringBuffer}} this StringBuffer. @throws NullPointerException if {@code chars} is {@code null}. */ append : function( ) {}, /**Adds the specified sequence of characters to the end of this buffer. @param {Object {char[]}} chars the character array to append. @param {Number} start the starting offset. @param {Number} length the number of characters. @return {Object {java.lang.StringBuffer}} this StringBuffer. @throws ArrayIndexOutOfBoundsException if {@code length < 0} , {@code start < 0} or {@code start + length > chars.length}. @throws NullPointerException if {@code chars} is {@code null}. */ append : function( ) {}, /**Appends the specified CharSequence to this buffer. <p> If the specified CharSequence is {@code null} the string {@code "null"} is appended, otherwise the contents of the specified CharSequence is appended. @param {Object {CharSequence}} s the CharSequence to append. @return {Object {java.lang.StringBuffer}} this StringBuffer. @since 1.5 */ append : function( ) {}, /**Appends the specified subsequence of the CharSequence to this buffer. <p> If the specified CharSequence is {@code null}, then the string {@code "null"} is used to extract a subsequence. @param {Object {CharSequence}} s the CharSequence to append. @param {Number} start the inclusive start index. @param {Number} end the exclusive end index. @return {Object {java.lang.StringBuffer}} this StringBuffer. @throws IndexOutOfBoundsException if {@code start} or {@code end} are negative, {@code start} is greater than {@code end} or {@code end} is greater than the length of {@code s}. @since 1.5 */ append : function( ) {}, /**Appends the string representation of the specified Unicode code point to the end of this buffer. <p> The code point is converted to a {@code char[]} as defined by {@link java.lang.Character#toChars(int)}. @param {Number} codePoint the Unicode code point to encode and append. @return {Object {java.lang.StringBuffer}} this StringBuffer. @see Character#toChars(int) @since 1.5 */ appendCodePoint : function( ) {}, /** */ charAt : function( ) {}, /** */ codePointAt : function( ) {}, /** */ codePointBefore : function( ) {}, /** */ codePointCount : function( ) {}, /**Deletes a range of characters. @param {Number} start the offset of the first character. @param {Number} end the offset one past the last character. @return {Object {java.lang.StringBuffer}} this StringBuffer. @throws StringIndexOutOfBoundsException if {@code start < 0}, {@code start > end} or {@code end > length()}. */ delete : function( ) {}, /**Deletes the character at the specified offset. @param {Number} location the offset of the character to delete. @return {Object {java.lang.StringBuffer}} this StringBuffer. @throws StringIndexOutOfBoundsException if {@code location < 0} or {@code location >= length()} */ deleteCharAt : function( ) {}, /** */ ensureCapacity : function( ) {}, /**Copies the requested sequence of characters to the {@code char[]} passed starting at {@code idx}. @param {Number} start the starting offset of characters to copy. @param {Number} end the ending offset of characters to copy. @param {Object {char[]}} buffer the destination character array. @param {Number} idx the starting offset in the character array. @throws IndexOutOfBoundsException if {@code start < 0}, {@code end > length()}, {@code start > end}, {@code index < 0}, {@code end - start > buffer.length - index} */ getChars : function( ) {}, /** */ indexOf : function( ) {}, /**Inserts the character into this buffer at the specified offset. @param {Number} index the index at which to insert. @param {String} ch the character to insert. @return {Object {java.lang.StringBuffer}} this buffer. @throws ArrayIndexOutOfBoundsException if {@code index < 0} or {@code index > length()}. */ insert : function( ) {}, /**Inserts the string representation of the specified boolean into this buffer at the specified offset. @param {Number} index the index at which to insert. @param {Boolean} b the boolean to insert. @return {Object {java.lang.StringBuffer}} this buffer. @throws StringIndexOutOfBoundsException if {@code index < 0} or {@code index > length()}. */ insert : function( ) {}, /**Inserts the string representation of the specified integer into this buffer at the specified offset. @param {Number} index the index at which to insert. @param {Number} i the integer to insert. @return {Object {java.lang.StringBuffer}} this buffer. @throws StringIndexOutOfBoundsException if {@code index < 0} or {@code index > length()}. */ insert : function( ) {}, /**Inserts the string representation of the specified long into this buffer at the specified offset. @param {Number} index the index at which to insert. @param {Number} l the long to insert. @return {Object {java.lang.StringBuffer}} this buffer. @throws StringIndexOutOfBoundsException if {@code index < 0} or {@code index > length()}. */ insert : function( ) {}, /**Inserts the string representation of the specified into this buffer double at the specified offset. @param {Number} index the index at which to insert. @param {Number} d the double to insert. @return {Object {java.lang.StringBuffer}} this buffer. @throws StringIndexOutOfBoundsException if {@code index < 0} or {@code index > length()}. */ insert : function( ) {}, /**Inserts the string representation of the specified float into this buffer at the specified offset. @param {Number} index the index at which to insert. @param {Number} f the float to insert. @return {Object {java.lang.StringBuffer}} this buffer. @throws StringIndexOutOfBoundsException if {@code index < 0} or {@code index > length()}. */ insert : function( ) {}, /**Inserts the string representation of the specified object into this buffer at the specified offset. <p> If the specified object is {@code null}, the string {@code "null"} is inserted, otherwise the objects {@code toString} method is used to get its string representation. @param {Number} index the index at which to insert. @param {Object {Object}} obj the object to insert (may be null). @return {Object {java.lang.StringBuffer}} this buffer. @throws StringIndexOutOfBoundsException if {@code index < 0} or {@code index > length()}. */ insert : function( ) {}, /**Inserts the string into this buffer at the specified offset. <p> If the specified string is {@code null}, the string {@code "null"} is inserted, otherwise the contents of the string is inserted. @param {Number} index the index at which to insert. @param {String} string the string to insert (may be null). @return {Object {java.lang.StringBuffer}} this buffer. @throws StringIndexOutOfBoundsException if {@code index < 0} or {@code index > length()}. */ insert : function( ) {}, /**Inserts the character array into this buffer at the specified offset. @param {Number} index the index at which to insert. @param {Object {char[]}} chars the character array to insert. @return {Object {java.lang.StringBuffer}} this buffer. @throws StringIndexOutOfBoundsException if {@code index < 0} or {@code index > length()}. @throws NullPointerException if {@code chars} is {@code null}. */ insert : function( ) {}, /**Inserts the specified subsequence of characters into this buffer at the specified index. @param {Number} index the index at which to insert. @param {Object {char[]}} chars the character array to insert. @param {Number} start the starting offset. @param {Number} length the number of characters. @return {Object {java.lang.StringBuffer}} this buffer. @throws NullPointerException if {@code chars} is {@code null}. @throws StringIndexOutOfBoundsException if {@code length < 0}, {@code start < 0}, {@code start + length > chars.length}, {@code index < 0} or {@code index > length()} */ insert : function( ) {}, /**Inserts the specified CharSequence into this buffer at the specified index. <p> If the specified CharSequence is {@code null}, the string {@code "null"} is inserted, otherwise the contents of the CharSequence. @param {Number} index The index at which to insert. @param {Object {CharSequence}} s The char sequence to insert. @return {Object {java.lang.StringBuffer}} this buffer. @throws IndexOutOfBoundsException if {@code index < 0} or {@code index > length()}. @since 1.5 */ insert : function( ) {}, /**Inserts the specified subsequence into this buffer at the specified index. <p> If the specified CharSequence is {@code null}, the string {@code "null"} is inserted, otherwise the contents of the CharSequence. @param {Number} index The index at which to insert. @param {Object {CharSequence}} s The char sequence to insert. @param {Number} start The inclusive start index in the char sequence. @param {Number} end The exclusive end index in the char sequence. @return {Object {java.lang.StringBuffer}} this buffer. @throws IndexOutOfBoundsException if {@code index} is negative or greater than the current length, {@code start} or {@code end} are negative, {@code start} is greater than {@code end} or {@code end} is greater than the length of {@code s}. @since 1.5 */ insert : function( ) {}, /** */ lastIndexOf : function( ) {}, /** */ offsetByCodePoints : function( ) {}, /**Replaces the characters in the specified range with the contents of the specified string. @param {Number} start the inclusive begin index. @param {Number} end the exclusive end index. @param {String} string the string that will replace the contents in the range. @return {Object {java.lang.StringBuffer}} this buffer. @throws StringIndexOutOfBoundsException if {@code start} or {@code end} are negative, {@code start} is greater than {@code end} or {@code end} is greater than the length of {@code s}. */ replace : function( ) {}, /**Reverses the order of characters in this buffer. @return {Object {java.lang.StringBuffer}} this buffer. */ reverse : function( ) {}, /** */ setCharAt : function( ) {}, /** */ setLength : function( ) {}, /** */ subSequence : function( ) {}, /** */ substring : function( ) {}, /** */ substring : function( ) {}, /** */ toString : function( ) {}, /** */ trimToSize : function( ) {}, };