Java java.lang StringBuilder fields, constructors, methods, implement or subclass

Example usage for Java java.lang StringBuilder fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.lang StringBuilder.

The text is from its open source code.

Constructor

StringBuilder(int capacity)
Constructs a string builder with no characters in it and an initial capacity specified by the capacity argument.
StringBuilder(String str)
Constructs a string builder initialized to the contents of the specified string.
StringBuilder(CharSequence seq)
Constructs a string builder that contains the same characters as the specified CharSequence .
StringBuilder()
Constructs a string builder with no characters in it and an initial capacity of 16 characters.

Method

StringBuilderappend(Object obj)
StringBuilderappend(String str)
StringBuilderappend(StringBuffer sb)
Appends the specified StringBuffer to this sequence.
StringBuilderappend(CharSequence s)
StringBuilderappend(char[] str)
StringBuilderappend(boolean b)
StringBuilderappend(char c)
StringBuilderappend(int i)
StringBuilderappend(long lng)
StringBuilderappend(float f)
StringBuilderappend(double d)
StringBuilderappend(CharSequence s, int start, int end)
StringBuilderappend(char[] str, int offset, int len)
StringBuilderappendCodePoint(int codePoint)
charcharAt(int index)
Returns the char value at the specified index.
StringBuilderdelete(int start, int end)
StringBuilderdeleteCharAt(int index)
booleanequals(Object obj)
Indicates whether some other object is "equal to" this one.
ClassgetClass()
Returns the runtime class of this Object .
inthashCode()
Returns a hash code value for the object.
intindexOf(String str, int fromIndex)
intindexOf(String str)
StringBuilderinsert(int offset, Object obj)
StringBuilderinsert(int offset, String str)
StringBuilderinsert(int offset, char[] str)
StringBuilderinsert(int dstOffset, CharSequence s)
StringBuilderinsert(int offset, boolean b)
StringBuilderinsert(int offset, char c)
StringBuilderinsert(int offset, int i)
StringBuilderinsert(int offset, long l)
StringBuilderinsert(int offset, float f)
StringBuilderinsert(int offset, double d)
StringBuilderinsert(int index, char[] str, int offset, int len)
StringBuilderinsert(int dstOffset, CharSequence s, int start, int end)
intlastIndexOf(String str)
intlastIndexOf(String str, int fromIndex)
intlength()
Returns the length of this character sequence.
StringBuilderreplace(int start, int end, String str)
StringBuilderreverse()
CharSequencesubSequence(int start, int end)
Returns a CharSequence that is a subsequence of this sequence.
StringtoString()
voidwriteObject(java.io.ObjectOutputStream s)
Save the state of the StringBuilder instance to a stream (that is, serialize it).