1<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "//www.w3.org/TR/html4/strict.dtd">
2<HTML style="overflow:auto;">
3<HEAD>
4<meta name="generator" content="JDiff v1.1.0">
5<!-- Generated by the JDiff Javadoc doclet -->
6<!-- (http://www.jdiff.org) -->
7<meta name="description" content="JDiff is a Javadoc doclet which generates an HTML report of all the packages, classes, constructors, methods, and fields which have been removed, added or changed in any way, including their documentation, when two APIs are compared.">
8<meta name="keywords" content="diff, jdiff, javadiff, java diff, java difference, API difference, difference between two APIs, API diff, Javadoc, doclet">
9<TITLE>
10java.lang.StringBuffer
11</TITLE>
12<link href="../../../../assets/android-developer-docs.css" rel="stylesheet" type="text/css" />
13<link href="../stylesheet-jdiff.css" rel="stylesheet" type="text/css" />
14<noscript>
15<style type="text/css">
16body{overflow:auto;}
17#body-content{position:relative; top:0;}
18#doc-content{overflow:visible;border-left:3px solid #666;}
19#side-nav{padding:0;}
20#side-nav .toggle-list ul {display:block;}
21#resize-packages-nav{border-bottom:3px solid #666;}
22</style>
23</noscript>
24<style type="text/css">
25</style>
26</HEAD>
27<BODY>
28<!-- Start of nav bar -->
29<a name="top"></a>
30<div id="header" style="margin-bottom:0;padding-bottom:0;">
31<div id="headerLeft">
32<a href="../../../../index.html" tabindex="-1" target="_top"><img src="../../../../assets/images/bg_logo.png" alt="Android Developers" /></a>
33</div>
34  <div id="headerRight">
35  <div id="headerLinks">
36<!-- <img src="/assets/images/icon_world.jpg" alt="" /> -->
37<span class="text">
38<!-- &nbsp;<a href="#">English</a> | -->
39<nobr><a href="//developer.android.com" target="_top">Android Developers</a> | <a href="//www.android.com" target="_top">Android.com</a></nobr>
40</span>
41</div>
42  <div class="and-diff-id" style="margin-top:6px;margin-right:8px;">
43    <table class="diffspectable">
44      <tr>
45        <td colspan="2" class="diffspechead">API Diff Specification</td>
46      </tr>
47      <tr>
48        <td class="diffspec" style="padding-top:.25em">To Level:</td>
49        <td class="diffvaluenew" style="padding-top:.25em">24</td>
50      </tr>
51      <tr>
52        <td class="diffspec">From Level:</td>
53        <td class="diffvalueold">n-preview-3</td>
54      </tr>
55      <tr>
56        <td class="diffspec">Generated</td>
57        <td class="diffvalue">2016.06.13 13:32</td>
58      </tr>
59    </table>
60    </div><!-- End and-diff-id -->
61  <div class="and-diff-id" style="margin-right:8px;">
62    <table class="diffspectable">
63      <tr>
64        <td class="diffspec" colspan="2"><a href="jdiff_statistics.html">Statistics</a>
65      </tr>
66    </table>
67  </div> <!-- End and-diff-id -->
68  </div> <!-- End headerRight -->
69  </div> <!-- End header -->
70<div id="body-content" xstyle="padding:12px;padding-right:18px;">
71<div id="doc-content" style="position:relative;">
72<div id="mainBodyFluid">
73<H2>
74Class java.lang.<A HREF="../../../../reference/java/lang/StringBuffer.html" target="_top"><font size="+2"><code>StringBuffer</code></font></A>
75</H2>
76<p><font xsize="+1">Added interface <code>java.lang.Appendable</code>.<br></font>
77<a NAME="constructors"></a>
78<a NAME="methods"></a>
79<p>
80<a NAME="Added"></a>
81<TABLE summary="Added Methods" WIDTH="100%">
82<TR>
83  <TH VALIGN="TOP" COLSPAN=2>Added Methods</FONT></TD>
84</TH>
85<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
86  <TD VALIGN="TOP" WIDTH="25%">
87  <A NAME="java.lang.StringBuffer.append_added(boolean)"></A>
88  <nobr><code>StringBuffer</code>&nbsp;<A HREF="../../../../reference/java/lang/StringBuffer.html#append(boolean)" target="_top"><code>append</code></A>(<code>boolean</code>)</nobr>
89  </TD>
90  <TD>&nbsp;</TD>
91</TR>
92<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
93  <TD VALIGN="TOP" WIDTH="25%">
94  <A NAME="java.lang.StringBuffer.append_added(char)"></A>
95  <nobr><code>StringBuffer</code>&nbsp;<A HREF="../../../../reference/java/lang/StringBuffer.html#append(char)" target="_top"><code>append</code></A>(<code>char</code>)</nobr>
96  </TD>
97  <TD>&nbsp;</TD>
98</TR>
99<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
100  <TD VALIGN="TOP" WIDTH="25%">
101  <A NAME="java.lang.StringBuffer.append_added(char[])"></A>
102  <nobr><code>StringBuffer</code>&nbsp;<A HREF="../../../../reference/java/lang/StringBuffer.html#append(char[])" target="_top"><code>append</code></A>(<code>char[]</code>)</nobr>
103  </TD>
104  <TD>&nbsp;</TD>
105</TR>
106<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
107  <TD VALIGN="TOP" WIDTH="25%">
108  <A NAME="java.lang.StringBuffer.append_added(char[], int, int)"></A>
109  <nobr><code>StringBuffer</code>&nbsp;<A HREF="../../../../reference/java/lang/StringBuffer.html#append(char[], int, int)" target="_top"><code>append</code></A>(<code>char[],</nobr> int<nobr>,</nobr> int<nobr><nobr></code>)</nobr>
110  </TD>
111  <TD>&nbsp;</TD>
112</TR>
113<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
114  <TD VALIGN="TOP" WIDTH="25%">
115  <A NAME="java.lang.StringBuffer.append_added(double)"></A>
116  <nobr><code>StringBuffer</code>&nbsp;<A HREF="../../../../reference/java/lang/StringBuffer.html#append(double)" target="_top"><code>append</code></A>(<code>double</code>)</nobr>
117  </TD>
118  <TD>&nbsp;</TD>
119</TR>
120<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
121  <TD VALIGN="TOP" WIDTH="25%">
122  <A NAME="java.lang.StringBuffer.append_added(float)"></A>
123  <nobr><code>StringBuffer</code>&nbsp;<A HREF="../../../../reference/java/lang/StringBuffer.html#append(float)" target="_top"><code>append</code></A>(<code>float</code>)</nobr>
124  </TD>
125  <TD>&nbsp;</TD>
126</TR>
127<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
128  <TD VALIGN="TOP" WIDTH="25%">
129  <A NAME="java.lang.StringBuffer.append_added(int)"></A>
130  <nobr><code>StringBuffer</code>&nbsp;<A HREF="../../../../reference/java/lang/StringBuffer.html#append(int)" target="_top"><code>append</code></A>(<code>int</code>)</nobr>
131  </TD>
132  <TD>&nbsp;</TD>
133</TR>
134<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
135  <TD VALIGN="TOP" WIDTH="25%">
136  <A NAME="java.lang.StringBuffer.append_added(java.lang.CharSequence)"></A>
137  <nobr><code>StringBuffer</code>&nbsp;<A HREF="../../../../reference/java/lang/StringBuffer.html#append(java.lang.CharSequence)" target="_top"><code>append</code></A>(<code>CharSequence</code>)</nobr>
138  </TD>
139  <TD>&nbsp;</TD>
140</TR>
141<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
142  <TD VALIGN="TOP" WIDTH="25%">
143  <A NAME="java.lang.StringBuffer.append_added(java.lang.CharSequence, int, int)"></A>
144  <nobr><code>StringBuffer</code>&nbsp;<A HREF="../../../../reference/java/lang/StringBuffer.html#append(java.lang.CharSequence, int, int)" target="_top"><code>append</code></A>(<code>CharSequence,</nobr> int<nobr>,</nobr> int<nobr><nobr></code>)</nobr>
145  </TD>
146  <TD>&nbsp;</TD>
147</TR>
148<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
149  <TD VALIGN="TOP" WIDTH="25%">
150  <A NAME="java.lang.StringBuffer.append_added(java.lang.Object)"></A>
151  <nobr><code>StringBuffer</code>&nbsp;<A HREF="../../../../reference/java/lang/StringBuffer.html#append(java.lang.Object)" target="_top"><code>append</code></A>(<code>Object</code>)</nobr>
152  </TD>
153  <TD>&nbsp;</TD>
154</TR>
155<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
156  <TD VALIGN="TOP" WIDTH="25%">
157  <A NAME="java.lang.StringBuffer.append_added(java.lang.String)"></A>
158  <nobr><code>StringBuffer</code>&nbsp;<A HREF="../../../../reference/java/lang/StringBuffer.html#append(java.lang.String)" target="_top"><code>append</code></A>(<code>String</code>)</nobr>
159  </TD>
160  <TD>&nbsp;</TD>
161</TR>
162<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
163  <TD VALIGN="TOP" WIDTH="25%">
164  <A NAME="java.lang.StringBuffer.append_added(java.lang.StringBuffer)"></A>
165  <nobr><code>StringBuffer</code>&nbsp;<A HREF="../../../../reference/java/lang/StringBuffer.html#append(java.lang.StringBuffer)" target="_top"><code>append</code></A>(<code>StringBuffer</code>)</nobr>
166  </TD>
167  <TD>&nbsp;</TD>
168</TR>
169<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
170  <TD VALIGN="TOP" WIDTH="25%">
171  <A NAME="java.lang.StringBuffer.append_added(long)"></A>
172  <nobr><code>StringBuffer</code>&nbsp;<A HREF="../../../../reference/java/lang/StringBuffer.html#append(long)" target="_top"><code>append</code></A>(<code>long</code>)</nobr>
173  </TD>
174  <TD>&nbsp;</TD>
175</TR>
176<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
177  <TD VALIGN="TOP" WIDTH="25%">
178  <A NAME="java.lang.StringBuffer.insert_added(int, boolean)"></A>
179  <nobr><code>StringBuffer</code>&nbsp;<A HREF="../../../../reference/java/lang/StringBuffer.html#insert(int, boolean)" target="_top"><code>insert</code></A>(<code>int,</nobr> boolean<nobr><nobr></code>)</nobr>
180  </TD>
181  <TD>&nbsp;</TD>
182</TR>
183<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
184  <TD VALIGN="TOP" WIDTH="25%">
185  <A NAME="java.lang.StringBuffer.insert_added(int, char)"></A>
186  <nobr><code>StringBuffer</code>&nbsp;<A HREF="../../../../reference/java/lang/StringBuffer.html#insert(int, char)" target="_top"><code>insert</code></A>(<code>int,</nobr> char<nobr><nobr></code>)</nobr>
187  </TD>
188  <TD>&nbsp;</TD>
189</TR>
190<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
191  <TD VALIGN="TOP" WIDTH="25%">
192  <A NAME="java.lang.StringBuffer.insert_added(int, char[])"></A>
193  <nobr><code>StringBuffer</code>&nbsp;<A HREF="../../../../reference/java/lang/StringBuffer.html#insert(int, char[])" target="_top"><code>insert</code></A>(<code>int,</nobr> char[]<nobr><nobr></code>)</nobr>
194  </TD>
195  <TD>&nbsp;</TD>
196</TR>
197<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
198  <TD VALIGN="TOP" WIDTH="25%">
199  <A NAME="java.lang.StringBuffer.insert_added(int, char[], int, int)"></A>
200  <nobr><code>StringBuffer</code>&nbsp;<A HREF="../../../../reference/java/lang/StringBuffer.html#insert(int, char[], int, int)" target="_top"><code>insert</code></A>(<code>int,</nobr> char[]<nobr>,</nobr> int<nobr>,</nobr> int<nobr><nobr></code>)</nobr>
201  </TD>
202  <TD>&nbsp;</TD>
203</TR>
204<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
205  <TD VALIGN="TOP" WIDTH="25%">
206  <A NAME="java.lang.StringBuffer.insert_added(int, double)"></A>
207  <nobr><code>StringBuffer</code>&nbsp;<A HREF="../../../../reference/java/lang/StringBuffer.html#insert(int, double)" target="_top"><code>insert</code></A>(<code>int,</nobr> double<nobr><nobr></code>)</nobr>
208  </TD>
209  <TD>&nbsp;</TD>
210</TR>
211<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
212  <TD VALIGN="TOP" WIDTH="25%">
213  <A NAME="java.lang.StringBuffer.insert_added(int, float)"></A>
214  <nobr><code>StringBuffer</code>&nbsp;<A HREF="../../../../reference/java/lang/StringBuffer.html#insert(int, float)" target="_top"><code>insert</code></A>(<code>int,</nobr> float<nobr><nobr></code>)</nobr>
215  </TD>
216  <TD>&nbsp;</TD>
217</TR>
218<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
219  <TD VALIGN="TOP" WIDTH="25%">
220  <A NAME="java.lang.StringBuffer.insert_added(int, int)"></A>
221  <nobr><code>StringBuffer</code>&nbsp;<A HREF="../../../../reference/java/lang/StringBuffer.html#insert(int, int)" target="_top"><code>insert</code></A>(<code>int,</nobr> int<nobr><nobr></code>)</nobr>
222  </TD>
223  <TD>&nbsp;</TD>
224</TR>
225<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
226  <TD VALIGN="TOP" WIDTH="25%">
227  <A NAME="java.lang.StringBuffer.insert_added(int, java.lang.CharSequence)"></A>
228  <nobr><code>StringBuffer</code>&nbsp;<A HREF="../../../../reference/java/lang/StringBuffer.html#insert(int, java.lang.CharSequence)" target="_top"><code>insert</code></A>(<code>int,</nobr> CharSequence<nobr><nobr></code>)</nobr>
229  </TD>
230  <TD>&nbsp;</TD>
231</TR>
232<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
233  <TD VALIGN="TOP" WIDTH="25%">
234  <A NAME="java.lang.StringBuffer.insert_added(int, java.lang.CharSequence, int, int)"></A>
235  <nobr><code>StringBuffer</code>&nbsp;<A HREF="../../../../reference/java/lang/StringBuffer.html#insert(int, java.lang.CharSequence, int, int)" target="_top"><code>insert</code></A>(<code>int,</nobr> CharSequence<nobr>,</nobr> int<nobr>,</nobr> int<nobr><nobr></code>)</nobr>
236  </TD>
237  <TD>&nbsp;</TD>
238</TR>
239<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
240  <TD VALIGN="TOP" WIDTH="25%">
241  <A NAME="java.lang.StringBuffer.insert_added(int, java.lang.Object)"></A>
242  <nobr><code>StringBuffer</code>&nbsp;<A HREF="../../../../reference/java/lang/StringBuffer.html#insert(int, java.lang.Object)" target="_top"><code>insert</code></A>(<code>int,</nobr> Object<nobr><nobr></code>)</nobr>
243  </TD>
244  <TD>&nbsp;</TD>
245</TR>
246<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
247  <TD VALIGN="TOP" WIDTH="25%">
248  <A NAME="java.lang.StringBuffer.insert_added(int, java.lang.String)"></A>
249  <nobr><code>StringBuffer</code>&nbsp;<A HREF="../../../../reference/java/lang/StringBuffer.html#insert(int, java.lang.String)" target="_top"><code>insert</code></A>(<code>int,</nobr> String<nobr><nobr></code>)</nobr>
250  </TD>
251  <TD>&nbsp;</TD>
252</TR>
253<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
254  <TD VALIGN="TOP" WIDTH="25%">
255  <A NAME="java.lang.StringBuffer.insert_added(int, long)"></A>
256  <nobr><code>StringBuffer</code>&nbsp;<A HREF="../../../../reference/java/lang/StringBuffer.html#insert(int, long)" target="_top"><code>insert</code></A>(<code>int,</nobr> long<nobr><nobr></code>)</nobr>
257  </TD>
258  <TD>&nbsp;</TD>
259</TR>
260</TABLE>
261&nbsp;
262<p>
263<a NAME="Changed"></a>
264<TABLE summary="Changed Methods" WIDTH="100%">
265<TR>
266  <TH VALIGN="TOP" COLSPAN=3>Changed Methods</FONT></TD>
267</TH>
268<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
269  <TD VALIGN="TOP" WIDTH="25%">
270  <A NAME="java.lang.StringBuffer.appendCodePoint_changed(int)"></A>
271  <nobr><code>StringBuffer</code>&nbsp;<A HREF="../../../../reference/java/lang/StringBuffer.html#appendCodePoint(int)" target="_top"><code>appendCodePoint</code></A>(<code>int</code>)  </nobr>
272  </TD>
273  <TD VALIGN="TOP" WIDTH="30%">
274Change in return type from <code>AbstractStringBuilder</code> to <code>StringBuffer</code>.<br>
275 Method was inherited from <code>java.lang.AbstractStringBuilder</code>, but is now defined locally.
276  </TD>
277  <TD>&nbsp;</TD>
278</TR>
279<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
280  <TD VALIGN="TOP" WIDTH="25%">
281  <A NAME="java.lang.StringBuffer.delete_changed(int, int)"></A>
282  <nobr><code>StringBuffer</code>&nbsp;<A HREF="../../../../reference/java/lang/StringBuffer.html#delete(int, int)" target="_top"><code>delete</code></A>(<code>int,</nobr> int<nobr><nobr></code>)  </nobr>
283  </TD>
284  <TD VALIGN="TOP" WIDTH="30%">
285Change in return type from <code>AbstractStringBuilder</code> to <code>StringBuffer</code>.<br>
286 Method was inherited from <code>java.lang.AbstractStringBuilder</code>, but is now defined locally.
287  </TD>
288  <TD>&nbsp;</TD>
289</TR>
290<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
291  <TD VALIGN="TOP" WIDTH="25%">
292  <A NAME="java.lang.StringBuffer.deleteCharAt_changed(int)"></A>
293  <nobr><code>StringBuffer</code>&nbsp;<A HREF="../../../../reference/java/lang/StringBuffer.html#deleteCharAt(int)" target="_top"><code>deleteCharAt</code></A>(<code>int</code>)  </nobr>
294  </TD>
295  <TD VALIGN="TOP" WIDTH="30%">
296Change in return type from <code>AbstractStringBuilder</code> to <code>StringBuffer</code>.<br>
297 Method was inherited from <code>java.lang.AbstractStringBuilder</code>, but is now defined locally.
298  </TD>
299  <TD>&nbsp;</TD>
300</TR>
301<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
302  <TD VALIGN="TOP" WIDTH="25%">
303  <A NAME="java.lang.StringBuffer.replace_changed(int, int, java.lang.String)"></A>
304  <nobr><code>StringBuffer</code>&nbsp;<A HREF="../../../../reference/java/lang/StringBuffer.html#replace(int, int, java.lang.String)" target="_top"><code>replace</code></A>(<code>int,</nobr> int<nobr>,</nobr> String<nobr><nobr></code>)  </nobr>
305  </TD>
306  <TD VALIGN="TOP" WIDTH="30%">
307Change in return type from <code>AbstractStringBuilder</code> to <code>StringBuffer</code>.<br>
308 Method was inherited from <code>java.lang.AbstractStringBuilder</code>, but is now defined locally.
309  </TD>
310  <TD>&nbsp;</TD>
311</TR>
312<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
313  <TD VALIGN="TOP" WIDTH="25%">
314  <A NAME="java.lang.StringBuffer.reverse_changed()"></A>
315  <nobr><code>StringBuffer</code>&nbsp;<A HREF="../../../../reference/java/lang/StringBuffer.html#reverse()" target="_top"><code>reverse</code></A>()  </nobr>
316  </TD>
317  <TD VALIGN="TOP" WIDTH="30%">
318Change in return type from <code>AbstractStringBuilder</code> to <code>StringBuffer</code>.<br>
319 Method was inherited from <code>java.lang.AbstractStringBuilder</code>, but is now defined locally.
320  </TD>
321  <TD>&nbsp;</TD>
322</TR>
323<TR BGCOLOR="#FFFFFF" CLASS="TableRowColor">
324  <TD VALIGN="TOP" WIDTH="25%">
325  <A NAME="java.lang.StringBuffer.toString_changed()"></A>
326  <nobr><code>String</code>&nbsp;<A HREF="../../../../reference/java/lang/Object.html#toString()" target="_top"><code>toString</code></A>()  </nobr>
327  </TD>
328  <TD VALIGN="TOP" WIDTH="30%">
329Method was locally defined, but is now inherited from <a href="../../../../reference/java/lang/Object.html#toString()" target="_top"><code>Object</code></a>.
330  </TD>
331  <TD>&nbsp;</TD>
332</TR>
333</TABLE>
334&nbsp;
335<a NAME="fields"></a>
336      </div>
337      <div id="footer">
338        <div id="copyright">
339        Except as noted, this content is licensed under
340        <a href="//creativecommons.org/licenses/by/2.5/"> Creative Commons Attribution 2.5</a>.
341        For details and restrictions, see the <a href="/license.html">Content License</a>.
342        </div>
343      <div id="footerlinks">
344      <p>
345        <a href="//www.android.com/terms.html">Site Terms of Service</a> -
346        <a href="//www.android.com/privacy.html">Privacy Policy</a> -
347        <a href="//www.android.com/branding.html">Brand Guidelines</a>
348      </p>
349    </div>
350    </div> <!-- end footer -->
351    </div><!-- end doc-content -->
352    </div> <!-- end body-content -->
353<script src="//www.google-analytics.com/ga.js" type="text/javascript">
354</script>
355<script type="text/javascript">
356  try {
357    var pageTracker = _gat._getTracker("UA-5831155-1");
358    pageTracker._setAllowAnchor(true);
359    pageTracker._initData();
360    pageTracker._trackPageview();
361  } catch(e) {}
362</script>
363</BODY>
364</HTML>
365