<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (version 1.7.0_17) on Sun Nov 03 15:35:44 CET 2013 -->
<title>StringBuilder (libgdx API)
</title>
<meta name="date" content="2013-11-03">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="StringBuilder (libgdx API)";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.
</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!-- -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.html">Overview
</a></li>
<li><a href="package-summary.html">Package
</a></li>
<li class="navBarCell1Rev">Class
</li>
<li><a href="class-use/StringBuilder.html">Use
</a></li>
<li><a href="package-tree.html">Tree
</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated
</a></li>
<li><a href="../../../../index-all.html">Index
</a></li>
<li><a href="../../../../help-doc.html">Help
</a></li>
</ul>
<div class="aboutLanguage"><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></div>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../com/badlogic/gdx/utils/StreamUtils.html" title="class in com.badlogic.gdx.utils"><span class="strong">Prev Class
</span></a></li>
<li><a href="../../../../com/badlogic/gdx/utils/Timer.html" title="class in com.badlogic.gdx.utils"><span class="strong">Next Class
</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?com/badlogic/gdx/utils/StringBuilder.html" target="_top">Frames
</a></li>
<li><a href="StringBuilder.html" target="_top">No Frames
</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.html">All Classes
</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
</div>
<div>
<ul class="subNavList">
<li>Summary:
</li>
<li>Nested
|
</li>
<li><a href="#field_summary">Field
</a> |
</li>
<li><a href="#constructor_summary">Constr
</a> |
</li>
<li><a href="#method_summary">Method
</a></li>
</ul>
<ul class="subNavList">
<li>Detail:
</li>
<li><a href="#field_detail">Field
</a> |
</li>
<li><a href="#constructor_detail">Constr
</a> |
</li>
<li><a href="#method_detail">Method
</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle">com.badlogic.gdx.utils
</div>
<h2 title="Class StringBuilder" class="title">Class StringBuilder
</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object
</li>
<li>
<ul class="inheritance">
<li>com.badlogic.gdx.utils.StringBuilder
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:
</dt>
<dd>java.lang.Appendable, java.lang.CharSequence
</dd>
</dl>
<hr>
<br>
<pre>public class
<span class="strong">StringBuilder
</span>
extends java.lang.Object
implements java.lang.Appendable, java.lang.CharSequence
</pre>
<div class="block">A
<code>StringBuilder
</code> that implements equals and hashcode.
</div>
<dl><dt><span class="strong">See Also:
</span></dt><dd><code>CharSequence
</code>,
<code>Appendable
</code>,
<code>StringBuilder
</code>,
<code>String
</code></dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!-- -->
</a>
<h3>Field Summary
</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields
</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type
</th>
<th class="colLast" scope="col">Field and Description
</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>char[]
</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#chars">chars
</a></strong></code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int
</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#length">length
</a></strong></code> </td>
</tr>
</table>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!-- -->
</a>
<h3>Constructor Summary
</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors
</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colOne" scope="col">Constructor and Description
</th>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#StringBuilder()">StringBuilder
</a></strong>()
</code>
<div class="block">Constructs an instance with an initial capacity of
<code>16
</code>.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#StringBuilder(java.lang.CharSequence)">StringBuilder
</a></strong>(java.lang.CharSequence
seq)
</code>
<div class="block">Constructs an instance that's initialized with the contents of the specified
<code>CharSequence
</code>.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#StringBuilder(int)">StringBuilder
</a></strong>(int
capacity)
</code>
<div class="block">Constructs an instance with the specified capacity.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colOne"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#StringBuilder(java.lang.String)">StringBuilder
</a></strong>(java.lang.String
string)
</code>
<div class="block">Constructs an instance that's initialized with the contents of the specified
<code>String
</code>.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colOne"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#StringBuilder(com.badlogic.gdx.utils.StringBuilder)">StringBuilder
</a></strong>(
<a href="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</a> builder)
</code> </td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!-- -->
</a>
<h3>Method Summary
</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods
</span><span class="tabEnd"> </span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type
</th>
<th class="colLast" scope="col">Method and Description
</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#append(boolean)">append
</a></strong>(boolean
b)
</code>
<div class="block">Appends the string representation of the specified
<code>boolean
</code> value.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#append(char)">append
</a></strong>(char
c)
</code>
<div class="block">Appends the string representation of the specified
<code>char
</code> value.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#append(char[])">append
</a></strong>(char[]
ch)
</code>
<div class="block">Appends the string representation of the specified
<code>char[]
</code>.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#append(char[], int, int)">append
</a></strong>(char[]
str,
int
offset,
int
len)
</code>
<div class="block">Appends the string representation of the specified subset of the
<code>char[]
</code>.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#append(java.lang.CharSequence)">append
</a></strong>(java.lang.CharSequence
csq)
</code>
<div class="block">Appends the string representation of the specified
<code>CharSequence
</code>.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#append(java.lang.CharSequence, int, int)">append
</a></strong>(java.lang.CharSequence
csq,
int
start,
int
end)
</code>
<div class="block">Appends the string representation of the specified subsequence of the
<code>CharSequence
</code>.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#append(double)">append
</a></strong>(double
d)
</code>
<div class="block">Appends the string representation of the specified
<code>double
</code> value.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#append(float)">append
</a></strong>(float
f)
</code>
<div class="block">Appends the string representation of the specified
<code>float
</code> value.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#append(int)">append
</a></strong>(int
i)
</code>
<div class="block">Appends the string representation of the specified
<code>int
</code> value.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#append(long)">append
</a></strong>(long
lng)
</code>
<div class="block">Appends the string representation of the specified
<code>long
</code> value.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#append(java.lang.Object)">append
</a></strong>(java.lang.Object
obj)
</code>
<div class="block">Appends the string representation of the specified
<code>Object
</code>.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#append(java.lang.String)">append
</a></strong>(java.lang.String
str)
</code>
<div class="block">Appends the contents of the specified string.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#append(com.badlogic.gdx.utils.StringBuilder)">append
</a></strong>(
<a href="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</a> builder)
</code> </td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#append(com.badlogic.gdx.utils.StringBuilder, int, int)">append
</a></strong>(
<a href="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</a> builder,
int
start,
int
end)
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#appendCodePoint(int)">appendCodePoint
</a></strong>(int
codePoint)
</code>
<div class="block">Appends the encoded Unicode code point.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int
</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#capacity()">capacity
</a></strong>()
</code>
<div class="block">Returns the number of characters that can be held without growing.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>char
</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#charAt(int)">charAt
</a></strong>(int
index)
</code>
<div class="block">Retrieves the character at the
<code>index
</code>.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int
</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#codePointAt(int)">codePointAt
</a></strong>(int
index)
</code>
<div class="block">Retrieves the Unicode code point value at the
<code>index
</code>.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int
</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#codePointBefore(int)">codePointBefore
</a></strong>(int
index)
</code>
<div class="block">Retrieves the Unicode code point value that precedes the
<code>index
</code>.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int
</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#codePointCount(int, int)">codePointCount
</a></strong>(int
beginIndex,
int
endIndex)
</code>
<div class="block">Calculates the number of Unicode code points between
<code>beginIndex
</code> and
<code>endIndex
</code>.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#delete(int, int)">delete
</a></strong>(int
start,
int
end)
</code>
<div class="block">Deletes a sequence of characters specified by
<code>start
</code> and
<code>end
</code>.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#deleteCharAt(int)">deleteCharAt
</a></strong>(int
index)
</code>
<div class="block">Deletes the character at the specified index.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#ensureCapacity(int)">ensureCapacity
</a></strong>(int
min)
</code>
<div class="block">Ensures that this object has a minimum capacity available before requiring the internal buffer to be enlarged.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>boolean
</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#equals(java.lang.Object)">equals
</a></strong>(java.lang.Object
obj)
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#getChars(int, int, char[], int)">getChars
</a></strong>(int
start,
int
end,
char[]
dest,
int
destStart)
</code>
<div class="block">Copies the requested sequence of characters to the
<code>char[]
</code> passed starting at
<code>destStart
</code>.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int
</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#hashCode()">hashCode
</a></strong>()
</code> </td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int
</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#indexOf(java.lang.String)">indexOf
</a></strong>(java.lang.String
string)
</code>
<div class="block">Searches for the first index of the specified character.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int
</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#indexOf(java.lang.String, int)">indexOf
</a></strong>(java.lang.String
subString,
int
start)
</code>
<div class="block">Searches for the index of the specified character.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#insert(int, boolean)">insert
</a></strong>(int
offset,
boolean
b)
</code>
<div class="block">Inserts the string representation of the specified
<code>boolean
</code> value at the specified
<code>offset
</code>.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#insert(int, char)">insert
</a></strong>(int
offset,
char
c)
</code>
<div class="block">Inserts the string representation of the specified
<code>char
</code> value at the specified
<code>offset
</code>.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#insert(int, char[])">insert
</a></strong>(int
offset,
char[]
ch)
</code>
<div class="block">Inserts the string representation of the specified
<code>char[]
</code> at the specified
<code>offset
</code>.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#insert(int, char[], int, int)">insert
</a></strong>(int
offset,
char[]
str,
int
strOffset,
int
strLen)
</code>
<div class="block">Inserts the string representation of the specified subsequence of the
<code>char[]
</code> at the specified
<code>offset
</code>.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#insert(int, java.lang.CharSequence)">insert
</a></strong>(int
offset,
java.lang.CharSequence
s)
</code>
<div class="block">Inserts the string representation of the specified
<code>CharSequence
</code> at the specified
<code>offset
</code>.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#insert(int, java.lang.CharSequence, int, int)">insert
</a></strong>(int
offset,
java.lang.CharSequence
s,
int
start,
int
end)
</code>
<div class="block">Inserts the string representation of the specified subsequence of the
<code>CharSequence
</code> at the specified
<code>offset
</code>.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#insert(int, double)">insert
</a></strong>(int
offset,
double
d)
</code>
<div class="block">Inserts the string representation of the specified
<code>double
</code> value at the specified
<code>offset
</code>.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#insert(int, float)">insert
</a></strong>(int
offset,
float
f)
</code>
<div class="block">Inserts the string representation of the specified
<code>float
</code> value at the specified
<code>offset
</code>.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#insert(int, int)">insert
</a></strong>(int
offset,
int
i)
</code>
<div class="block">Inserts the string representation of the specified
<code>int
</code> value at the specified
<code>offset
</code>.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#insert(int, long)">insert
</a></strong>(int
offset,
long
l)
</code>
<div class="block">Inserts the string representation of the specified
<code>long
</code> value at the specified
<code>offset
</code>.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#insert(int, java.lang.Object)">insert
</a></strong>(int
offset,
java.lang.Object
obj)
</code>
<div class="block">Inserts the string representation of the specified
<code>Object
</code> at the specified
<code>offset
</code>.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#insert(int, java.lang.String)">insert
</a></strong>(int
offset,
java.lang.String
str)
</code>
<div class="block">Inserts the specified string at the specified
<code>offset
</code>.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int
</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#lastIndexOf(java.lang.String)">lastIndexOf
</a></strong>(java.lang.String
string)
</code>
<div class="block">Searches for the last index of the specified character.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int
</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#lastIndexOf(java.lang.String, int)">lastIndexOf
</a></strong>(java.lang.String
subString,
int
start)
</code>
<div class="block">Searches for the index of the specified character.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int
</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#length()">length
</a></strong>()
</code>
<div class="block">The current length.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int
</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#offsetByCodePoints(int, int)">offsetByCodePoints
</a></strong>(int
index,
int
codePointOffset)
</code>
<div class="block">Returns the index that is offset
<code>codePointOffset
</code> code points from
<code>index
</code>.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#replace(int, int, java.lang.String)">replace
</a></strong>(int
start,
int
end,
java.lang.String
str)
</code>
<div class="block">Replaces the specified subsequence in this builder with the specified string.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</a></code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#reverse()">reverse
</a></strong>()
</code>
<div class="block">Reverses the order of characters in this builder.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#setCharAt(int, char)">setCharAt
</a></strong>(int
index,
char
ch)
</code>
<div class="block">Sets the character at the
<code>index
</code>.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#setLength(int)">setLength
</a></strong>(int
newLength)
</code>
<div class="block">Sets the current length to a new value.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.CharSequence
</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#subSequence(int, int)">subSequence
</a></strong>(int
start,
int
end)
</code>
<div class="block">Returns a
<code>CharSequence
</code> of the subsequence from the
<code>start
</code> index to the
<code>end
</code> index.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.String
</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#substring(int)">substring
</a></strong>(int
start)
</code>
<div class="block">Returns the String value of the subsequence from the
<code>start
</code> index to the current end.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.String
</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#substring(int, int)">substring
</a></strong>(int
start,
int
end)
</code>
<div class="block">Returns the String value of the subsequence from the
<code>start
</code> index to the
<code>end
</code> index.
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>java.lang.String
</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#toString()">toString
</a></strong>()
</code>
<div class="block">Returns the current String representation.
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void
</code></td>
<td class="colLast"><code><strong><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#trimToSize()">trimToSize
</a></strong>()
</code>
<div class="block">Trims off any extra capacity beyond the current length.
</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!-- -->
</a>
<h3>Methods inherited from class
java.lang.Object
</h3>
<code>clone, finalize, getClass, notify, notifyAll, wait, wait, wait
</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_detail">
<!-- -->
</a>
<h3>Field Detail
</h3>
<a name="chars">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>chars
</h4>
<pre>public
char[] chars
</pre>
</li>
</ul>
<a name="length">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>length
</h4>
<pre>public
int length
</pre>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!-- -->
</a>
<h3>Constructor Detail
</h3>
<a name="StringBuilder()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>StringBuilder
</h4>
<pre>public
StringBuilder()
</pre>
<div class="block">Constructs an instance with an initial capacity of
<code>16
</code>.
</div>
<dl><dt><span class="strong">See Also:
</span></dt><dd><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#capacity()"><code>capacity()
</code></a></dd></dl>
</li>
</ul>
<a name="StringBuilder(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>StringBuilder
</h4>
<pre>public
StringBuilder(int
capacity)
</pre>
<div class="block">Constructs an instance with the specified capacity.
</div>
<dl><dt><span class="strong">Parameters:
</span></dt><dd><code>capacity
</code> - the initial capacity to use.
</dd>
<dt><span class="strong">Throws:
</span></dt>
<dd><code>java.lang.NegativeArraySizeException
</code> - if the specified
<code>capacity
</code> is negative.
</dd><dt><span class="strong">See Also:
</span></dt><dd><a href="../../../../com/badlogic/gdx/utils/StringBuilder.html#capacity()"><code>capacity()
</code></a></dd></dl>
</li>
</ul>
<a name="StringBuilder(java.lang.CharSequence)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>StringBuilder
</h4>
<pre>public
StringBuilder(java.lang.CharSequence
seq)
</pre>
<div class="block">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.
</div>
<dl><dt><span class="strong">Parameters:
</span></dt><dd><code>seq
</code> - the
<code>CharSequence
</code> to copy into the builder.
</dd>
<dt><span class="strong">Throws:
</span></dt>
<dd><code>java.lang.NullPointerException
</code> - if
<code>seq
</code> is
<code>null
</code>.
</dd></dl>
</li>
</ul>
<a name="StringBuilder(com.badlogic.gdx.utils.StringBuilder)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>StringBuilder
</h4>
<pre>public
StringBuilder(
<a href="../../../../com/badlogic/gdx/utils/StringBuilder.html" title="class in com.badlogic.gdx.utils">StringBuilder
</a> builder)
</pre>
</li>
</ul>
<a name="StringBuilder(java.lang.String)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>StringBuilder
</h4>
<pre>public
StringBuilder(java.lang.String
string)
</pre>
<div class="block">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.
</div>
<dl><dt><span class="strong">Parameters:
</span></dt><dd><code>string
</code> - the
<code>String
</code> to copy into the builder.
</dd>
<dt><span class="strong">Throws:
</span></dt>
<dd><code>java.lang.NullPointerException
</code> - if
<code>str
</code> is
<code>null
</code>.
</dd></dl>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!-- -->
</a>
<h3>Method Detail
</h3>
<a name="capacity()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>capacity
</h4>
<pre>public
int
capacity()
</pre>
<div class="block">Returns the number of characters that can be held without growing.
</div>
<dl><dt><span class="strong">Returns:
</span></dt><dd>the capacity
</dd><dt><span class="strong">See Also:
</span></dt><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></dd></dl>
</li>
</ul>
<a name="charAt(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>charAt
</h4>
<pre>public
char
charAt(int
index)
</pre>
<div class="block">Retrieves the character at the
<code>index
</code>.
</div>
<dl>
<dt><strong>Specified by:
</strong></dt>
<dd><code>charAt
</code> in interface
<code>java.lang.CharSequence
</code></dd>
<dt><span class="strong">Parameters:
</span></dt><dd><code>index
</code> - the index of the character to retrieve.
</dd>
<dt><span class="strong">Returns:
</span></dt><dd>the char value.
</dd>
<dt><span class="strong">Throws:
</span></dt>
<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>.
</dd></dl>
</li>
</ul>
<a name="ensureCapacity(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>ensureCapacity
</h4>
<pre>public
void
ensureCapacity(int
min)
</pre>
<div class="block">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.
</div>
<dl><dt><span class="strong">Parameters:
</span></dt><dd><code>min
</code> - the new minimum capacity to set.
</dd></dl>
</li>
</ul>
<a name="getChars(int, int, char[], int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getChars
</h4>
<pre>public
void
getChars(int
start,
int
end,
char[]
dest,
int
destStart)
</pre>
<div class="block">Copies the requested sequence of characters to the
<code>char[]
</code> passed starting at
<code>destStart
</code>.
</div>
<dl><dt><span class="strong">Parameters:
</span></dt><dd><code>start
</code> - the inclusive start index of the characters to copy.
</dd><dd><code>end
</code> - the exclusive end index of the characters to copy.
</dd><dd><code>dest
</code> - the
<code>char[]
</code> to copy the characters to.
</dd><dd><code>destStart
</code> - the inclusive start index of
<code>dest
</code> to begin copying to.
</dd>
<dt><span class="strong">Throws:
</span></dt>
<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>.
</dd></dl>
</li>
</ul>
<a name="length()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>length
</h4>
<pre>public
int
length()
</pre>
<div class="block">The current length.
</div>
<dl>
<dt><strong>Specified by:
</strong></dt>
<dd><code>length
</code> in interface
<code>java.lang.CharSequence
</code></dd>
<dt><span class="strong">Returns:
</span></dt><dd>the number of characters contained in this instance.
</dd></dl>
</li>
</ul>
<a name="setCharAt(int, char)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setCharAt
</h4>
<pre>public
void
setCharAt(int
index,
char
ch)
</pre>
<div class="block">Sets the character at the
<code>index
</code>.
</div>
<dl><dt><span class="strong">Parameters:
</span></dt><dd><code>index
</code> - the zero-based index of the character to replace.
</dd><dd><code>ch
</code> - the character to set.
</dd>
<dt><span class="strong">Throws:
</span></dt>
<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>.
</dd></dl>
</li>
</ul>
<a name="setLength(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setLength
</h4>
<pre>public
void
setLength(int
newLength)
</pre>
<div class="block">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>