<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc (build 1.6.0_26) on Sun Jan 27 20:37:08 CET 2013 -->
<TITLE>
StringBuilder (libgdx API)
</TITLE>
<META NAME="date" CONTENT="2013-01-27">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style">
<SCRIPT type="text/javascript">
function windowTitle()
{
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="StringBuilder (libgdx API)";
}
}
</SCRIPT>
<NOSCRIPT>
</NOSCRIPT>
</HEAD>
<BODY BGCOLOR="white" onload="windowTitle();">
<HR>
<!-- ========= START OF TOP NAVBAR ======= -->
<A NAME="navbar_top"><!-- --></A>
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview
</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package
</B></FONT></A> </TD>
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class
</B></FONT> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/StringBuilder.html"><FONT CLASS="NavBarFont1"><B>Use
</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree
</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated
</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index
</B></FONT></A> </TD>
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help
</B></FONT></A> </TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
libgdx API
<style>
body, td, th { font-family:Helvetica, Tahoma, Arial, sans-serif; font-size:10pt }
pre, code, tt { font-size:9pt; font-family:Lucida Console, Courier New, sans-serif }
h1, h2, h3, .FrameTitleFont, .FrameHeadingFont, .TableHeadingColor font { font-size:105%; font-weight:bold }
.TableHeadingColor { background:#EEEEFF; }
a { text-decoration:none }
a:hover { text-decoration:underline }
a:link, a:visited { color:blue }
table { border:0px }
.TableRowColor td:first-child { border-left:1px solid black }
.TableRowColor td { border:0px; border-bottom:1px solid black; border-right:1px solid black }
hr { border:0px; border-bottom:1px solid #333366; }
</style>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../com/badlogic/gdx/utils/SortedIntList.Node.html" title="class in com.badlogic.gdx.utils"><B>PREV CLASS
</B></A>
<A HREF="../../../../com/badlogic/gdx/utils/Timer.html" title="class in com.badlogic.gdx.utils"><B>NEXT CLASS
</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
<A HREF="../../../../index.html?com/badlogic/gdx/utils/StringBuilder.html" target="_top"><B>FRAMES
</B></A>
<A HREF="StringBuilder.html" target="_top"><B>NO FRAMES
</B></A>
<SCRIPT type="text/javascript">
<!--
if(window==top) {
document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>');
}
//-->
</SCRIPT>
<NOSCRIPT>
<A HREF="../../../../allclasses-noframe.html"><B>All Classes
</B></A>
</NOSCRIPT>
</FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
SUMMARY:
NESTED
|
<A HREF="#field_summary">FIELD
</A> |
<A HREF="#constructor_summary">CONSTR
</A> |
<A HREF="#method_summary">METHOD
</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:
<A HREF="#field_detail">FIELD
</A> |
<A HREF="#constructor_detail">CONSTR
</A> |
<A HREF="#method_detail">METHOD
</A></FONT></TD>
</TR>
</TABLE>
<A NAME="skip-navbar_top"></A>
<!-- ========= END OF TOP NAVBAR ========= -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.badlogic.gdx.utils
</FONT>
<BR>
Class StringBuilder
</H2>
<PRE>
java.lang.Object
<IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.badlogic.gdx.utils.StringBuilder
</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:
</B> <DD>java.lang.Appendable, java.lang.CharSequence
</DD>
</DL>
<HR>
<DL>
<DT><PRE>public class
<B>StringBuilder
</B><DT>extends java.lang.Object
<DT>implements java.lang.Appendable, java.lang.CharSequence
</DL>
</PRE>
<P>
A
<CODE>StringBuilder
</CODE> that implements equals and hashcode.
<P>
<P>
<DL>
<DT><B>See Also:
</B><DD><CODE>CharSequence
</CODE>,
<CODE>Appendable
</CODE>,
<CODE>StringBuilder
</CODE>,
<CODE>String
</CODE></DL>
<HR>
<P>
<!-- =========== FIELD SUMMARY =========== -->
<A NAME="field_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Field Summary
</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> char[]
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#chars">chars
</A></B></CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#length">length
</A></B></CODE>
<BR>
</TD>
</TR>
</TABLE>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Constructor Summary
</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#StringBuilder()">StringBuilder
</A></B>()
</CODE>
<BR>
Constructs an instance with an initial capacity of
<code>16
</code>.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#StringBuilder(java.lang.CharSequence)">StringBuilder
</A></B>(java.lang.CharSequence
seq)
</CODE>
<BR>
Constructs an instance that's initialized with the contents of the specified
<code>CharSequence
</code>.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#StringBuilder(int)">StringBuilder
</A></B>(int
capacity)
</CODE>
<BR>
Constructs an instance with the specified capacity.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#StringBuilder(java.lang.String)">StringBuilder
</A></B>(java.lang.String
string)
</CODE>
<BR>
Constructs an instance that's initialized with the contents of the specified
<code>String
</code>.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#StringBuilder(com.badlogic.gdx.utils.StringBuilder)">StringBuilder
</A></B>(
<A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</A> builder)
</CODE>
<BR>
</TD>
</TR>
</TABLE>
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
<B>Method Summary
</B></FONT></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#append(boolean)">append
</A></B>(boolean
b)
</CODE>
<BR>
Appends the string representation of the specified
<code>boolean
</code> value.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#append(char)">append
</A></B>(char
c)
</CODE>
<BR>
Appends the string representation of the specified
<code>char
</code> value.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#append(char[])">append
</A></B>(char[]
ch)
</CODE>
<BR>
Appends the string representation of the specified
<code>char[]
</code>.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#append(char[], int, int)">append
</A></B>(char[]
str,
int
offset,
int
len)
</CODE>
<BR>
Appends the string representation of the specified subset of the
<code>char[]
</code>.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#append(java.lang.CharSequence)">append
</A></B>(java.lang.CharSequence
csq)
</CODE>
<BR>
Appends the string representation of the specified
<code>CharSequence
</code>.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#append(java.lang.CharSequence, int, int)">append
</A></B>(java.lang.CharSequence
csq,
int
start,
int
end)
</CODE>
<BR>
Appends the string representation of the specified subsequence of the
<code>CharSequence
</code>.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#append(double)">append
</A></B>(double
d)
</CODE>
<BR>
Appends the string representation of the specified
<code>double
</code> value.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#append(float)">append
</A></B>(float
f)
</CODE>
<BR>
Appends the string representation of the specified
<code>float
</code> value.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#append(int)">append
</A></B>(int
i)
</CODE>
<BR>
Appends the string representation of the specified
<code>int
</code> value.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#append(long)">append
</A></B>(long
lng)
</CODE>
<BR>
Appends the string representation of the specified
<code>long
</code> value.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#append(java.lang.Object)">append
</A></B>(java.lang.Object
obj)
</CODE>
<BR>
Appends the string representation of the specified
<code>Object
</code>.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#append(java.lang.String)">append
</A></B>(java.lang.String
str)
</CODE>
<BR>
Appends the contents of the specified string.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#append(com.badlogic.gdx.utils.StringBuilder)">append
</A></B>(
<A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</A> builder)
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#append(com.badlogic.gdx.utils.StringBuilder, int, int)">append
</A></B>(
<A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</A> builder,
int
start,
int
end)
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#appendCodePoint(int)">appendCodePoint
</A></B>(int
codePoint)
</CODE>
<BR>
Appends the encoded Unicode code point.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#capacity()">capacity
</A></B>()
</CODE>
<BR>
Returns the number of characters that can be held without growing.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> char
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#charAt(int)">charAt
</A></B>(int
index)
</CODE>
<BR>
Retrieves the character at the
<code>index
</code>.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#codePointAt(int)">codePointAt
</A></B>(int
index)
</CODE>
<BR>
Retrieves the Unicode code point value at the
<code>index
</code>.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#codePointBefore(int)">codePointBefore
</A></B>(int
index)
</CODE>
<BR>
Retrieves the Unicode code point value that precedes the
<code>index
</code>.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#codePointCount(int, int)">codePointCount
</A></B>(int
beginIndex,
int
endIndex)
</CODE>
<BR>
Calculates the number of Unicode code points between
<code>beginIndex
</code> and
<code>endIndex
</code>.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#delete(int, int)">delete
</A></B>(int
start,
int
end)
</CODE>
<BR>
Deletes a sequence of characters specified by
<code>start
</code> and
<code>end
</code>.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#deleteCharAt(int)">deleteCharAt
</A></B>(int
index)
</CODE>
<BR>
Deletes the character at the specified index.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#ensureCapacity(int)">ensureCapacity
</A></B>(int
min)
</CODE>
<BR>
Ensures that this object has a minimum capacity available before requiring the internal buffer to be enlarged.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> boolean
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#equals(java.lang.Object)">equals
</A></B>(java.lang.Object
obj)
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#getChars(int, int, char[], int)">getChars
</A></B>(int
start,
int
end,
char[]
dest,
int
destStart)
</CODE>
<BR>
Copies the requested sequence of characters to the
<code>char[]
</code> passed starting at
<code>destStart
</code>.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#hashCode()">hashCode
</A></B>()
</CODE>
<BR>
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#indexOf(java.lang.String)">indexOf
</A></B>(java.lang.String
string)
</CODE>
<BR>
Searches for the first index of the specified character.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#indexOf(java.lang.String, int)">indexOf
</A></B>(java.lang.String
subString,
int
start)
</CODE>
<BR>
Searches for the index of the specified character.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#insert(int, boolean)">insert
</A></B>(int
offset,
boolean
b)
</CODE>
<BR>
Inserts the string representation of the specified
<code>boolean
</code> value at the specified
<code>offset
</code>.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#insert(int, char)">insert
</A></B>(int
offset,
char
c)
</CODE>
<BR>
Inserts the string representation of the specified
<code>char
</code> value at the specified
<code>offset
</code>.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#insert(int, char[])">insert
</A></B>(int
offset,
char[]
ch)
</CODE>
<BR>
Inserts the string representation of the specified
<code>char[]
</code> at the specified
<code>offset
</code>.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#insert(int, char[], int, int)">insert
</A></B>(int
offset,
char[]
str,
int
strOffset,
int
strLen)
</CODE>
<BR>
Inserts the string representation of the specified subsequence of the
<code>char[]
</code> at the specified
<code>offset
</code>.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#insert(int, java.lang.CharSequence)">insert
</A></B>(int
offset,
java.lang.CharSequence
s)
</CODE>
<BR>
Inserts the string representation of the specified
<code>CharSequence
</code> at the specified
<code>offset
</code>.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#insert(int, java.lang.CharSequence, int, int)">insert
</A></B>(int
offset,
java.lang.CharSequence
s,
int
start,
int
end)
</CODE>
<BR>
Inserts the string representation of the specified subsequence of the
<code>CharSequence
</code> at the specified
<code>offset
</code>.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#insert(int, double)">insert
</A></B>(int
offset,
double
d)
</CODE>
<BR>
Inserts the string representation of the specified
<code>double
</code> value at the specified
<code>offset
</code>.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#insert(int, float)">insert
</A></B>(int
offset,
float
f)
</CODE>
<BR>
Inserts the string representation of the specified
<code>float
</code> value at the specified
<code>offset
</code>.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#insert(int, int)">insert
</A></B>(int
offset,
int
i)
</CODE>
<BR>
Inserts the string representation of the specified
<code>int
</code> value at the specified
<code>offset
</code>.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#insert(int, long)">insert
</A></B>(int
offset,
long
l)
</CODE>
<BR>
Inserts the string representation of the specified
<code>long
</code> value at the specified
<code>offset
</code>.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#insert(int, java.lang.Object)">insert
</A></B>(int
offset,
java.lang.Object
obj)
</CODE>
<BR>
Inserts the string representation of the specified
<code>Object
</code> at the specified
<code>offset
</code>.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#insert(int, java.lang.String)">insert
</A></B>(int
offset,
java.lang.String
str)
</CODE>
<BR>
Inserts the specified string at the specified
<code>offset
</code>.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#lastIndexOf(java.lang.String)">lastIndexOf
</A></B>(java.lang.String
string)
</CODE>
<BR>
Searches for the last index of the specified character.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#lastIndexOf(java.lang.String, int)">lastIndexOf
</A></B>(java.lang.String
subString,
int
start)
</CODE>
<BR>
Searches for the index of the specified character.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#length()">length
</A></B>()
</CODE>
<BR>
The current length.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> int
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#offsetByCodePoints(int, int)">offsetByCodePoints
</A></B>(int
index,
int
codePointOffset)
</CODE>
<BR>
Returns the index that is offset
<code>codePointOffset
</code> code points from
<code>index
</code>.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#replace(int, int, java.lang.String)">replace
</A></B>(int
start,
int
end,
java.lang.String
str)
</CODE>
<BR>
Replaces the specified subsequence in this builder with the specified string.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> <A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#reverse()">reverse
</A></B>()
</CODE>
<BR>
Reverses the order of characters in this builder.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#setCharAt(int, char)">setCharAt
</A></B>(int
index,
char
ch)
</CODE>
<BR>
Sets the character at the
<code>index
</code>.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#setLength(int)">setLength
</A></B>(int
newLength)
</CODE>
<BR>
Sets the current length to a new value.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.CharSequence
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#subSequence(int, int)">subSequence
</A></B>(int
start,
int
end)
</CODE>
<BR>
Returns a
<code>CharSequence
</code> of the subsequence from the
<code>start
</code> index to the
<code>end
</code> index.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#substring(int)">substring
</A></B>(int
start)
</CODE>
<BR>
Returns the String value of the subsequence from the
<code>start
</code> index to the current end.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#substring(int, int)">substring
</A></B>(int
start,
int
end)
</CODE>
<BR>
Returns the String value of the subsequence from the
<code>start
</code> index to the
<code>end
</code> index.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> java.lang.String
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#toString()">toString
</A></B>()
</CODE>
<BR>
Returns the current String representation.
</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE> void
</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#trimToSize()">trimToSize
</A></B>()
</CODE>
<BR>
Trims off any extra capacity beyond the current length.
</TD>
</TR>
</TABLE>
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object
</B></TH>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE>clone, finalize, getClass, notify, notifyAll, wait, wait, wait
</CODE></TD>
</TR>
</TABLE>
<P>
<!-- ============ FIELD DETAIL =========== -->
<A NAME="field_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Field Detail
</B></FONT></TH>
</TR>
</TABLE>
<A NAME="chars"><!-- --></A><H3>
chars
</H3>
<PRE>
public char[]
<B>chars
</B></PRE>
<DL>
<DL>
</DL>
</DL>
<HR>
<A NAME="length"><!-- --></A><H3>
length
</H3>
<PRE>
public int
<B>length
</B></PRE>
<DL>
<DL>
</DL>
</DL>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Constructor Detail
</B></FONT></TH>
</TR>
</TABLE>
<A NAME="StringBuilder()"><!-- --></A><H3>
StringBuilder
</H3>
<PRE>
public
<B>StringBuilder
</B>()
</PRE>
<DL>
<DD>Constructs an instance with an initial capacity of
<code>16
</code>.
<P>
<DL>
<DT><B>See Also:
</B><DD><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#capacity()"><CODE>capacity()
</CODE></A></DL>
</DL>
<HR>
<A NAME="StringBuilder(int)"><!-- --></A><H3>
StringBuilder
</H3>
<PRE>
public
<B>StringBuilder
</B>(int
capacity)
</PRE>
<DL>
<DD>Constructs an instance with the specified capacity.
<P>
<DL>
<DT><B>Parameters:
</B><DD><CODE>capacity
</CODE> - the initial capacity to use.
<DT><B>Throws:
</B>
<DD><CODE>java.lang.NegativeArraySizeException
</CODE> - if the specified
<code>capacity
</code> is negative.
<DT><B>See Also:
</B><DD><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#capacity()"><CODE>capacity()
</CODE></A></DL>
</DL>
<HR>
<A NAME="StringBuilder(java.lang.CharSequence)"><!-- --></A><H3>
StringBuilder
</H3>
<PRE>
public
<B>StringBuilder
</B>(java.lang.CharSequence
seq)
</PRE>
<DL>
<DD>Constructs an instance that's initialized with the contents of the specified
<code>CharSequence
</code>. The capacity of the new
builder will be the length of the
<code>CharSequence
</code> plus 16.
<P>
<DL>
<DT><B>Parameters:
</B><DD><CODE>seq
</CODE> - the
<code>CharSequence
</code> to copy into the builder.
<DT><B>Throws:
</B>
<DD><CODE>java.lang.NullPointerException
</CODE> - if
<code>seq
</code> is
<code>null
</code>.
</DL>
</DL>
<HR>
<A NAME="StringBuilder(com.badlogic.gdx.utils.StringBuilder)"><!-- --></A><H3>
StringBuilder
</H3>
<PRE>
public
<B>StringBuilder
</B>(
<A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</A> builder)
</PRE>
<DL>
</DL>
<HR>
<A NAME="StringBuilder(java.lang.String)"><!-- --></A><H3>
StringBuilder
</H3>
<PRE>
public
<B>StringBuilder
</B>(java.lang.String
string)
</PRE>
<DL>
<DD>Constructs an instance that's initialized with the contents of the specified
<code>String
</code>. The capacity of the new builder
will be the length of the
<code>String
</code> plus 16.
<P>
<DL>
<DT><B>Parameters:
</B><DD><CODE>string
</CODE> - the
<code>String
</code> to copy into the builder.
<DT><B>Throws:
</B>
<DD><CODE>java.lang.NullPointerException
</CODE> - if
<code>str
</code> is
<code>null
</code>.
</DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
<B>Method Detail
</B></FONT></TH>
</TR>
</TABLE>
<A NAME="capacity()"><!-- --></A><H3>
capacity
</H3>
<PRE>
public int
<B>capacity
</B>()
</PRE>
<DL>
<DD>Returns the number of characters that can be held without growing.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Returns:
</B><DD>the capacity
<DT><B>See Also:
</B><DD><A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#ensureCapacity(int)"><CODE>ensureCapacity(int)
</CODE></A>,
<A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#length"><CODE>length
</CODE></A></DL>
</DD>
</DL>
<HR>
<A NAME="charAt(int)"><!-- --></A><H3>
charAt
</H3>
<PRE>
public char
<B>charAt
</B>(int
index)
</PRE>
<DL>
<DD>Retrieves the character at the
<code>index
</code>.
<P>
<DD><DL>
<DT><B>Specified by:
</B><DD><CODE>charAt
</CODE> in interface
<CODE>java.lang.CharSequence
</CODE></DL>
</DD>
<DD><DL>
<DT><B>Parameters:
</B><DD><CODE>index
</CODE> - the index of the character to retrieve.
<DT><B>Returns:
</B><DD>the char value.
<DT><B>Throws:
</B>
<DD><CODE>java.lang.IndexOutOfBoundsException
</CODE> - if
<code>index
</code> is negative or greater than or equal to the current
<A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#length()"><CODE>length()
</CODE></A>.
</DL>
</DD>
</DL>
<HR>
<A NAME="ensureCapacity(int)"><!-- --></A><H3>
ensureCapacity
</H3>
<PRE>
public void
<B>ensureCapacity
</B>(int
min)
</PRE>
<DL>
<DD>Ensures that this object has a minimum capacity available before requiring the internal buffer to be enlarged. The general
policy of this method is that if the
<code>minimumCapacity
</code> is larger than the current
<A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#capacity()"><CODE>capacity()
</CODE></A>, then the
capacity will be increased to the largest value of either the
<code>minimumCapacity
</code> or the current capacity multiplied by
two plus two. Although this is the general policy, there is no guarantee that the capacity will change.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:
</B><DD><CODE>min
</CODE> - the new minimum capacity to set.
</DL>
</DD>
</DL>
<HR>
<A NAME="getChars(int, int, char[], int)"><!-- --></A><H3>
getChars
</H3>
<PRE>
public void
<B>getChars
</B>(int
start,
int
end,
char[]
dest,
int
destStart)
</PRE>
<DL>
<DD>Copies the requested sequence of characters to the
<code>char[]
</code> passed starting at
<code>destStart
</code>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:
</B><DD><CODE>start
</CODE> - the inclusive start index of the characters to copy.
<DD><CODE>end
</CODE> - the exclusive end index of the characters to copy.
<DD><CODE>dest
</CODE> - the
<code>char[]
</code> to copy the characters to.
<DD><CODE>destStart
</CODE> - the inclusive start index of
<code>dest
</code> to begin copying to.
<DT><B>Throws:
</B>
<DD><CODE>java.lang.IndexOutOfBoundsException
</CODE> - if the
<code>start
</code> is negative, the
<code>destStart
</code> is negative, the
<code>start
</code> is
greater than
<code>end
</code>, the
<code>end
</code> is greater than the current
<A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#length()"><CODE>length()
</CODE></A> or
<code>destStart + end - begin
</code> is greater than
<code>dest.length
</code>.
</DL>
</DD>
</DL>
<HR>
<A NAME="length()"><!-- --></A><H3>
length
</H3>
<PRE>
public int
<B>length
</B>()
</PRE>
<DL>
<DD>The current length.
<P>
<DD><DL>
<DT><B>Specified by:
</B><DD><CODE>length
</CODE> in interface
<CODE>java.lang.CharSequence
</CODE></DL>
</DD>
<DD><DL>
<DT><B>Returns:
</B><DD>the number of characters contained in this instance.
</DL>
</DD>
</DL>
<HR>
<A NAME="setCharAt(int, char)"><!-- --></A><H3>
setCharAt
</H3>
<PRE>
public void
<B>setCharAt
</B>(int
index,
char
ch)
</PRE>
<DL>
<DD>Sets the character at the
<code>index
</code>.
<P>
<DD><DL>
</DL>
</DD>
<DD><DL>
<DT><B>Parameters:
</B><DD><CODE>index
</CODE> - the zero-based index of the character to replace.
<DD><CODE>ch
</CODE> - the character to set.
<DT><B>Throws:
</B>
<DD><CODE>java.lang.IndexOutOfBoundsException
</CODE> - if
<code>index
</code> is negative or greater than or equal to the current
<A HREF="../../../../com/badlogic/gdx/utils/StringBuilder.html#length()"><CODE>length()
</CODE></A>.
</DL>
</DD>
</DL>
<HR>
<A NAME="setLength(int)"><!-- --></A><H3>
setLength
</H3>
<PRE>
public void
<B>setLength
</B>(int
newLength)
</PRE>
<DL>
<DD>Sets the current length to a new value. If the new length is larger than the current length, then the new characters at the
end of this object will contain the
<code>char
</code> value of
<code>