Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 272 | chris | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| 2 | <!--NewPage--> |
||
| 3 | <HTML> |
||
| 4 | <HEAD> |
||
| 5 | <!-- Generated by javadoc (build 1.6.0_26) on Mon Jul 02 02:26:05 CEST 2012 --> |
||
| 6 | <TITLE> |
||
| 7 | CharArray (libgdx API) |
||
| 8 | </TITLE> |
||
| 9 | |||
| 10 | <META NAME="date" CONTENT="2012-07-02"> |
||
| 11 | |||
| 12 | <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../stylesheet.css" TITLE="Style"> |
||
| 13 | |||
| 14 | <SCRIPT type="text/javascript"> |
||
| 15 | function windowTitle() |
||
| 16 | { |
||
| 17 | if (location.href.indexOf('is-external=true') == -1) { |
||
| 18 | parent.document.title="CharArray (libgdx API)"; |
||
| 19 | } |
||
| 20 | } |
||
| 21 | </SCRIPT> |
||
| 22 | <NOSCRIPT> |
||
| 23 | </NOSCRIPT> |
||
| 24 | |||
| 25 | </HEAD> |
||
| 26 | |||
| 27 | <BODY BGCOLOR="white" onload="windowTitle();"> |
||
| 28 | <HR> |
||
| 29 | |||
| 30 | |||
| 31 | <!-- ========= START OF TOP NAVBAR ======= --> |
||
| 32 | <A NAME="navbar_top"><!-- --></A> |
||
| 33 | <A HREF="#skip-navbar_top" title="Skip navigation links"></A> |
||
| 34 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
||
| 35 | <TR> |
||
| 36 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
||
| 37 | <A NAME="navbar_top_firstrow"><!-- --></A> |
||
| 38 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
||
| 39 | <TR ALIGN="center" VALIGN="top"> |
||
| 40 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
||
| 41 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
||
| 42 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
||
| 43 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/CharArray.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
||
| 44 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
||
| 45 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
||
| 46 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
||
| 47 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
||
| 48 | </TR> |
||
| 49 | </TABLE> |
||
| 50 | </TD> |
||
| 51 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
||
| 52 | |||
| 53 | libgdx API |
||
| 54 | <style> |
||
| 55 | body, td, th { font-family:Helvetica, Tahoma, Arial, sans-serif; font-size:10pt } |
||
| 56 | pre, code, tt { font-size:9pt; font-family:Lucida Console, Courier New, sans-serif } |
||
| 57 | h1, h2, h3, .FrameTitleFont, .FrameHeadingFont, .TableHeadingColor font { font-size:105%; font-weight:bold } |
||
| 58 | .TableHeadingColor { background:#EEEEFF; } |
||
| 59 | a { text-decoration:none } |
||
| 60 | a:hover { text-decoration:underline } |
||
| 61 | a:link, a:visited { color:blue } |
||
| 62 | table { border:0px } |
||
| 63 | .TableRowColor td:first-child { border-left:1px solid black } |
||
| 64 | .TableRowColor td { border:0px; border-bottom:1px solid black; border-right:1px solid black } |
||
| 65 | hr { border:0px; border-bottom:1px solid #333366; } |
||
| 66 | </style> |
||
| 67 | </EM> |
||
| 68 | </TD> |
||
| 69 | </TR> |
||
| 70 | |||
| 71 | <TR> |
||
| 72 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
||
| 73 | <A HREF="../../../../com/badlogic/gdx/utils/BufferUtils.html" title="class in com.badlogic.gdx.utils"><B>PREV CLASS</B></A> |
||
| 74 | <A HREF="../../../../com/badlogic/gdx/utils/Disposable.html" title="interface in com.badlogic.gdx.utils"><B>NEXT CLASS</B></A></FONT></TD> |
||
| 75 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
||
| 76 | <A HREF="../../../../index.html?com/badlogic/gdx/utils/CharArray.html" target="_top"><B>FRAMES</B></A> |
||
| 77 | <A HREF="CharArray.html" target="_top"><B>NO FRAMES</B></A> |
||
| 78 | <SCRIPT type="text/javascript"> |
||
| 79 | <!-- |
||
| 80 | if(window==top) { |
||
| 81 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
||
| 82 | } |
||
| 83 | //--> |
||
| 84 | </SCRIPT> |
||
| 85 | <NOSCRIPT> |
||
| 86 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
||
| 87 | </NOSCRIPT> |
||
| 88 | |||
| 89 | |||
| 90 | </FONT></TD> |
||
| 91 | </TR> |
||
| 92 | <TR> |
||
| 93 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
||
| 94 | SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
||
| 95 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
||
| 96 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
||
| 97 | </TR> |
||
| 98 | </TABLE> |
||
| 99 | <A NAME="skip-navbar_top"></A> |
||
| 100 | <!-- ========= END OF TOP NAVBAR ========= --> |
||
| 101 | |||
| 102 | <HR> |
||
| 103 | <!-- ======== START OF CLASS DATA ======== --> |
||
| 104 | <H2> |
||
| 105 | <FONT SIZE="-1"> |
||
| 106 | com.badlogic.gdx.utils</FONT> |
||
| 107 | <BR> |
||
| 108 | Class CharArray</H2> |
||
| 109 | <PRE> |
||
| 110 | java.lang.Object |
||
| 111 | <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.badlogic.gdx.utils.CharArray</B> |
||
| 112 | </PRE> |
||
| 113 | <HR> |
||
| 114 | <DL> |
||
| 115 | <DT><PRE>public class <B>CharArray</B><DT>extends java.lang.Object</DL> |
||
| 116 | </PRE> |
||
| 117 | |||
| 118 | <P> |
||
| 119 | A resizable, ordered or unordered char array. Avoids the boxing that occurs with ArrayList<Character>. If unordered, this class |
||
| 120 | avoids a memory copy when removing elements (the last element is moved to the removed element's position). |
||
| 121 | <P> |
||
| 122 | |||
| 123 | <P> |
||
| 124 | <DL> |
||
| 125 | <DT><B>Author:</B></DT> |
||
| 126 | <DD>Nathan Sweet</DD> |
||
| 127 | </DL> |
||
| 128 | <HR> |
||
| 129 | |||
| 130 | <P> |
||
| 131 | <!-- =========== FIELD SUMMARY =========== --> |
||
| 132 | |||
| 133 | <A NAME="field_summary"><!-- --></A> |
||
| 134 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 135 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
| 136 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
||
| 137 | <B>Field Summary</B></FONT></TH> |
||
| 138 | </TR> |
||
| 139 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 140 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 141 | <CODE> char[]</CODE></FONT></TD> |
||
| 142 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/CharArray.html#items">items</A></B></CODE> |
||
| 143 | |||
| 144 | <BR> |
||
| 145 | </TD> |
||
| 146 | </TR> |
||
| 147 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 148 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 149 | <CODE> boolean</CODE></FONT></TD> |
||
| 150 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/CharArray.html#ordered">ordered</A></B></CODE> |
||
| 151 | |||
| 152 | <BR> |
||
| 153 | </TD> |
||
| 154 | </TR> |
||
| 155 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 156 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 157 | <CODE> int</CODE></FONT></TD> |
||
| 158 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/CharArray.html#size">size</A></B></CODE> |
||
| 159 | |||
| 160 | <BR> |
||
| 161 | </TD> |
||
| 162 | </TR> |
||
| 163 | </TABLE> |
||
| 164 | |
||
| 165 | <!-- ======== CONSTRUCTOR SUMMARY ======== --> |
||
| 166 | |||
| 167 | <A NAME="constructor_summary"><!-- --></A> |
||
| 168 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 169 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
| 170 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
||
| 171 | <B>Constructor Summary</B></FONT></TH> |
||
| 172 | </TR> |
||
| 173 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 174 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/CharArray.html#CharArray()">CharArray</A></B>()</CODE> |
||
| 175 | |||
| 176 | <BR> |
||
| 177 | Creates an ordered array with a capacity of 16.</TD> |
||
| 178 | </TR> |
||
| 179 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 180 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/CharArray.html#CharArray(boolean, char[])">CharArray</A></B>(boolean ordered, |
||
| 181 | char[] array)</CODE> |
||
| 182 | |||
| 183 | <BR> |
||
| 184 | Creates a new array containing the elements in the specified array.</TD> |
||
| 185 | </TR> |
||
| 186 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 187 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/CharArray.html#CharArray(boolean, int)">CharArray</A></B>(boolean ordered, |
||
| 188 | int capacity)</CODE> |
||
| 189 | |||
| 190 | <BR> |
||
| 191 | </TD> |
||
| 192 | </TR> |
||
| 193 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 194 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/CharArray.html#CharArray(char[])">CharArray</A></B>(char[] array)</CODE> |
||
| 195 | |||
| 196 | <BR> |
||
| 197 | Creates a new ordered array containing the elements in the specified array.</TD> |
||
| 198 | </TR> |
||
| 199 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 200 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/CharArray.html#CharArray(com.badlogic.gdx.utils.CharArray)">CharArray</A></B>(<A HREF="../../../../com/badlogic/gdx/utils/CharArray.html" title="class in com.badlogic.gdx.utils">CharArray</A> array)</CODE> |
||
| 201 | |||
| 202 | <BR> |
||
| 203 | Creates a new array containing the elements in the specific array.</TD> |
||
| 204 | </TR> |
||
| 205 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 206 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/CharArray.html#CharArray(int)">CharArray</A></B>(int capacity)</CODE> |
||
| 207 | |||
| 208 | <BR> |
||
| 209 | Creates an ordered array with the specified capacity.</TD> |
||
| 210 | </TR> |
||
| 211 | </TABLE> |
||
| 212 | |
||
| 213 | <!-- ========== METHOD SUMMARY =========== --> |
||
| 214 | |||
| 215 | <A NAME="method_summary"><!-- --></A> |
||
| 216 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 217 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
| 218 | <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2"> |
||
| 219 | <B>Method Summary</B></FONT></TH> |
||
| 220 | </TR> |
||
| 221 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 222 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 223 | <CODE> void</CODE></FONT></TD> |
||
| 224 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/CharArray.html#add(char)">add</A></B>(char value)</CODE> |
||
| 225 | |||
| 226 | <BR> |
||
| 227 | </TD> |
||
| 228 | </TR> |
||
| 229 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 230 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 231 | <CODE> void</CODE></FONT></TD> |
||
| 232 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/CharArray.html#addAll(char[])">addAll</A></B>(char[] array)</CODE> |
||
| 233 | |||
| 234 | <BR> |
||
| 235 | </TD> |
||
| 236 | </TR> |
||
| 237 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 238 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 239 | <CODE> void</CODE></FONT></TD> |
||
| 240 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/CharArray.html#addAll(char[], int, int)">addAll</A></B>(char[] array, |
||
| 241 | int offset, |
||
| 242 | int length)</CODE> |
||
| 243 | |||
| 244 | <BR> |
||
| 245 | </TD> |
||
| 246 | </TR> |
||
| 247 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 248 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 249 | <CODE> void</CODE></FONT></TD> |
||
| 250 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/CharArray.html#addAll(com.badlogic.gdx.utils.CharArray)">addAll</A></B>(<A HREF="../../../../com/badlogic/gdx/utils/CharArray.html" title="class in com.badlogic.gdx.utils">CharArray</A> array)</CODE> |
||
| 251 | |||
| 252 | <BR> |
||
| 253 | </TD> |
||
| 254 | </TR> |
||
| 255 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 256 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 257 | <CODE> void</CODE></FONT></TD> |
||
| 258 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/CharArray.html#addAll(com.badlogic.gdx.utils.CharArray, int, int)">addAll</A></B>(<A HREF="../../../../com/badlogic/gdx/utils/CharArray.html" title="class in com.badlogic.gdx.utils">CharArray</A> array, |
||
| 259 | int offset, |
||
| 260 | int length)</CODE> |
||
| 261 | |||
| 262 | <BR> |
||
| 263 | </TD> |
||
| 264 | </TR> |
||
| 265 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 266 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 267 | <CODE> void</CODE></FONT></TD> |
||
| 268 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/CharArray.html#clear()">clear</A></B>()</CODE> |
||
| 269 | |||
| 270 | <BR> |
||
| 271 | </TD> |
||
| 272 | </TR> |
||
| 273 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 274 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 275 | <CODE> boolean</CODE></FONT></TD> |
||
| 276 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/CharArray.html#contains(char)">contains</A></B>(char value)</CODE> |
||
| 277 | |||
| 278 | <BR> |
||
| 279 | </TD> |
||
| 280 | </TR> |
||
| 281 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 282 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 283 | <CODE> char[]</CODE></FONT></TD> |
||
| 284 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/CharArray.html#ensureCapacity(int)">ensureCapacity</A></B>(int additionalCapacity)</CODE> |
||
| 285 | |||
| 286 | <BR> |
||
| 287 | Increases the size of the backing array to acommodate the specified number of additional items.</TD> |
||
| 288 | </TR> |
||
| 289 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 290 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 291 | <CODE> char</CODE></FONT></TD> |
||
| 292 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/CharArray.html#get(int)">get</A></B>(int index)</CODE> |
||
| 293 | |||
| 294 | <BR> |
||
| 295 | </TD> |
||
| 296 | </TR> |
||
| 297 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 298 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 299 | <CODE> int</CODE></FONT></TD> |
||
| 300 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/CharArray.html#indexOf(char)">indexOf</A></B>(char value)</CODE> |
||
| 301 | |||
| 302 | <BR> |
||
| 303 | </TD> |
||
| 304 | </TR> |
||
| 305 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 306 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 307 | <CODE> void</CODE></FONT></TD> |
||
| 308 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/CharArray.html#insert(int, char)">insert</A></B>(int index, |
||
| 309 | char value)</CODE> |
||
| 310 | |||
| 311 | <BR> |
||
| 312 | </TD> |
||
| 313 | </TR> |
||
| 314 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 315 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 316 | <CODE> char</CODE></FONT></TD> |
||
| 317 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/CharArray.html#peek()">peek</A></B>()</CODE> |
||
| 318 | |||
| 319 | <BR> |
||
| 320 | Returns the last item.</TD> |
||
| 321 | </TR> |
||
| 322 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 323 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 324 | <CODE> char</CODE></FONT></TD> |
||
| 325 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/CharArray.html#pop()">pop</A></B>()</CODE> |
||
| 326 | |||
| 327 | <BR> |
||
| 328 | Removes and returns the last item.</TD> |
||
| 329 | </TR> |
||
| 330 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 331 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 332 | <CODE> char</CODE></FONT></TD> |
||
| 333 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/CharArray.html#random()">random</A></B>()</CODE> |
||
| 334 | |||
| 335 | <BR> |
||
| 336 | Returns a random item from the array, or zero if the array is empty.</TD> |
||
| 337 | </TR> |
||
| 338 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 339 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 340 | <CODE> char</CODE></FONT></TD> |
||
| 341 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/CharArray.html#removeIndex(int)">removeIndex</A></B>(int index)</CODE> |
||
| 342 | |||
| 343 | <BR> |
||
| 344 | Removes and returns the item at the specified index.</TD> |
||
| 345 | </TR> |
||
| 346 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 347 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 348 | <CODE> boolean</CODE></FONT></TD> |
||
| 349 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/CharArray.html#removeValue(char)">removeValue</A></B>(char value)</CODE> |
||
| 350 | |||
| 351 | <BR> |
||
| 352 | </TD> |
||
| 353 | </TR> |
||
| 354 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 355 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 356 | <CODE>protected char[]</CODE></FONT></TD> |
||
| 357 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/CharArray.html#resize(int)">resize</A></B>(int newSize)</CODE> |
||
| 358 | |||
| 359 | <BR> |
||
| 360 | </TD> |
||
| 361 | </TR> |
||
| 362 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 363 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 364 | <CODE> void</CODE></FONT></TD> |
||
| 365 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/CharArray.html#reverse()">reverse</A></B>()</CODE> |
||
| 366 | |||
| 367 | <BR> |
||
| 368 | </TD> |
||
| 369 | </TR> |
||
| 370 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 371 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 372 | <CODE> void</CODE></FONT></TD> |
||
| 373 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/CharArray.html#set(int, char)">set</A></B>(int index, |
||
| 374 | char value)</CODE> |
||
| 375 | |||
| 376 | <BR> |
||
| 377 | </TD> |
||
| 378 | </TR> |
||
| 379 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 380 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 381 | <CODE> void</CODE></FONT></TD> |
||
| 382 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/CharArray.html#shrink()">shrink</A></B>()</CODE> |
||
| 383 | |||
| 384 | <BR> |
||
| 385 | Reduces the size of the backing array to the size of the actual items.</TD> |
||
| 386 | </TR> |
||
| 387 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 388 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 389 | <CODE> void</CODE></FONT></TD> |
||
| 390 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/CharArray.html#shuffle()">shuffle</A></B>()</CODE> |
||
| 391 | |||
| 392 | <BR> |
||
| 393 | </TD> |
||
| 394 | </TR> |
||
| 395 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 396 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 397 | <CODE> void</CODE></FONT></TD> |
||
| 398 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/CharArray.html#sort()">sort</A></B>()</CODE> |
||
| 399 | |||
| 400 | <BR> |
||
| 401 | </TD> |
||
| 402 | </TR> |
||
| 403 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 404 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 405 | <CODE> char[]</CODE></FONT></TD> |
||
| 406 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/CharArray.html#toArray()">toArray</A></B>()</CODE> |
||
| 407 | |||
| 408 | <BR> |
||
| 409 | </TD> |
||
| 410 | </TR> |
||
| 411 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 412 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 413 | <CODE> java.lang.String</CODE></FONT></TD> |
||
| 414 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/CharArray.html#toString()">toString</A></B>()</CODE> |
||
| 415 | |||
| 416 | <BR> |
||
| 417 | </TD> |
||
| 418 | </TR> |
||
| 419 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 420 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 421 | <CODE> java.lang.String</CODE></FONT></TD> |
||
| 422 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/CharArray.html#toString(java.lang.String)">toString</A></B>(java.lang.String separator)</CODE> |
||
| 423 | |||
| 424 | <BR> |
||
| 425 | </TD> |
||
| 426 | </TR> |
||
| 427 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 428 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 429 | <CODE> void</CODE></FONT></TD> |
||
| 430 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/CharArray.html#truncate(int)">truncate</A></B>(int newSize)</CODE> |
||
| 431 | |||
| 432 | <BR> |
||
| 433 | Reduces the size of the array to the specified size.</TD> |
||
| 434 | </TR> |
||
| 435 | </TABLE> |
||
| 436 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
||
| 437 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 438 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
||
| 439 | <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> |
||
| 440 | </TR> |
||
| 441 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 442 | <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD> |
||
| 443 | </TR> |
||
| 444 | </TABLE> |
||
| 445 | |
||
| 446 | <P> |
||
| 447 | |||
| 448 | <!-- ============ FIELD DETAIL =========== --> |
||
| 449 | |||
| 450 | <A NAME="field_detail"><!-- --></A> |
||
| 451 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 452 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
| 453 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
||
| 454 | <B>Field Detail</B></FONT></TH> |
||
| 455 | </TR> |
||
| 456 | </TABLE> |
||
| 457 | |||
| 458 | <A NAME="items"><!-- --></A><H3> |
||
| 459 | items</H3> |
||
| 460 | <PRE> |
||
| 461 | public char[] <B>items</B></PRE> |
||
| 462 | <DL> |
||
| 463 | <DL> |
||
| 464 | </DL> |
||
| 465 | </DL> |
||
| 466 | <HR> |
||
| 467 | |||
| 468 | <A NAME="size"><!-- --></A><H3> |
||
| 469 | size</H3> |
||
| 470 | <PRE> |
||
| 471 | public int <B>size</B></PRE> |
||
| 472 | <DL> |
||
| 473 | <DL> |
||
| 474 | </DL> |
||
| 475 | </DL> |
||
| 476 | <HR> |
||
| 477 | |||
| 478 | <A NAME="ordered"><!-- --></A><H3> |
||
| 479 | ordered</H3> |
||
| 480 | <PRE> |
||
| 481 | public boolean <B>ordered</B></PRE> |
||
| 482 | <DL> |
||
| 483 | <DL> |
||
| 484 | </DL> |
||
| 485 | </DL> |
||
| 486 | |||
| 487 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
||
| 488 | |||
| 489 | <A NAME="constructor_detail"><!-- --></A> |
||
| 490 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 491 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
| 492 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
||
| 493 | <B>Constructor Detail</B></FONT></TH> |
||
| 494 | </TR> |
||
| 495 | </TABLE> |
||
| 496 | |||
| 497 | <A NAME="CharArray()"><!-- --></A><H3> |
||
| 498 | CharArray</H3> |
||
| 499 | <PRE> |
||
| 500 | public <B>CharArray</B>()</PRE> |
||
| 501 | <DL> |
||
| 502 | <DD>Creates an ordered array with a capacity of 16. |
||
| 503 | <P> |
||
| 504 | </DL> |
||
| 505 | <HR> |
||
| 506 | |||
| 507 | <A NAME="CharArray(int)"><!-- --></A><H3> |
||
| 508 | CharArray</H3> |
||
| 509 | <PRE> |
||
| 510 | public <B>CharArray</B>(int capacity)</PRE> |
||
| 511 | <DL> |
||
| 512 | <DD>Creates an ordered array with the specified capacity. |
||
| 513 | <P> |
||
| 514 | </DL> |
||
| 515 | <HR> |
||
| 516 | |||
| 517 | <A NAME="CharArray(boolean, int)"><!-- --></A><H3> |
||
| 518 | CharArray</H3> |
||
| 519 | <PRE> |
||
| 520 | public <B>CharArray</B>(boolean ordered, |
||
| 521 | int capacity)</PRE> |
||
| 522 | <DL> |
||
| 523 | <DL> |
||
| 524 | <DT><B>Parameters:</B><DD><CODE>ordered</CODE> - If false, methods that remove elements may change the order of other elements in the array, which avoids a |
||
| 525 | memory copy.<DD><CODE>capacity</CODE> - Any elements added beyond this will cause the backing array to be grown.</DL> |
||
| 526 | </DL> |
||
| 527 | <HR> |
||
| 528 | |||
| 529 | <A NAME="CharArray(com.badlogic.gdx.utils.CharArray)"><!-- --></A><H3> |
||
| 530 | CharArray</H3> |
||
| 531 | <PRE> |
||
| 532 | public <B>CharArray</B>(<A HREF="../../../../com/badlogic/gdx/utils/CharArray.html" title="class in com.badlogic.gdx.utils">CharArray</A> array)</PRE> |
||
| 533 | <DL> |
||
| 534 | <DD>Creates a new array containing the elements in the specific array. The new array will be ordered if the specific array is |
||
| 535 | ordered. The capacity is set to the number of elements, so any subsequent elements added will cause the backing array to be |
||
| 536 | grown. |
||
| 537 | <P> |
||
| 538 | </DL> |
||
| 539 | <HR> |
||
| 540 | |||
| 541 | <A NAME="CharArray(char[])"><!-- --></A><H3> |
||
| 542 | CharArray</H3> |
||
| 543 | <PRE> |
||
| 544 | public <B>CharArray</B>(char[] array)</PRE> |
||
| 545 | <DL> |
||
| 546 | <DD>Creates a new ordered array containing the elements in the specified array. The capacity is set to the number of elements, |
||
| 547 | so any subsequent elements added will cause the backing array to be grown. |
||
| 548 | <P> |
||
| 549 | </DL> |
||
| 550 | <HR> |
||
| 551 | |||
| 552 | <A NAME="CharArray(boolean, char[])"><!-- --></A><H3> |
||
| 553 | CharArray</H3> |
||
| 554 | <PRE> |
||
| 555 | public <B>CharArray</B>(boolean ordered, |
||
| 556 | char[] array)</PRE> |
||
| 557 | <DL> |
||
| 558 | <DD>Creates a new array containing the elements in the specified array. The capacity is set to the number of elements, so any |
||
| 559 | subsequent elements added will cause the backing array to be grown. |
||
| 560 | <P> |
||
| 561 | <DL> |
||
| 562 | <DT><B>Parameters:</B><DD><CODE>ordered</CODE> - If false, methods that remove elements may change the order of other elements in the array, which avoids a |
||
| 563 | memory copy.</DL> |
||
| 564 | </DL> |
||
| 565 | |||
| 566 | <!-- ============ METHOD DETAIL ========== --> |
||
| 567 | |||
| 568 | <A NAME="method_detail"><!-- --></A> |
||
| 569 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 570 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
| 571 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
||
| 572 | <B>Method Detail</B></FONT></TH> |
||
| 573 | </TR> |
||
| 574 | </TABLE> |
||
| 575 | |||
| 576 | <A NAME="add(char)"><!-- --></A><H3> |
||
| 577 | add</H3> |
||
| 578 | <PRE> |
||
| 579 | public void <B>add</B>(char value)</PRE> |
||
| 580 | <DL> |
||
| 581 | <DD><DL> |
||
| 582 | </DL> |
||
| 583 | </DD> |
||
| 584 | </DL> |
||
| 585 | <HR> |
||
| 586 | |||
| 587 | <A NAME="addAll(com.badlogic.gdx.utils.CharArray)"><!-- --></A><H3> |
||
| 588 | addAll</H3> |
||
| 589 | <PRE> |
||
| 590 | public void <B>addAll</B>(<A HREF="../../../../com/badlogic/gdx/utils/CharArray.html" title="class in com.badlogic.gdx.utils">CharArray</A> array)</PRE> |
||
| 591 | <DL> |
||
| 592 | <DD><DL> |
||
| 593 | </DL> |
||
| 594 | </DD> |
||
| 595 | </DL> |
||
| 596 | <HR> |
||
| 597 | |||
| 598 | <A NAME="addAll(com.badlogic.gdx.utils.CharArray, int, int)"><!-- --></A><H3> |
||
| 599 | addAll</H3> |
||
| 600 | <PRE> |
||
| 601 | public void <B>addAll</B>(<A HREF="../../../../com/badlogic/gdx/utils/CharArray.html" title="class in com.badlogic.gdx.utils">CharArray</A> array, |
||
| 602 | int offset, |
||
| 603 | int length)</PRE> |
||
| 604 | <DL> |
||
| 605 | <DD><DL> |
||
| 606 | </DL> |
||
| 607 | </DD> |
||
| 608 | </DL> |
||
| 609 | <HR> |
||
| 610 | |||
| 611 | <A NAME="addAll(char[])"><!-- --></A><H3> |
||
| 612 | addAll</H3> |
||
| 613 | <PRE> |
||
| 614 | public void <B>addAll</B>(char[] array)</PRE> |
||
| 615 | <DL> |
||
| 616 | <DD><DL> |
||
| 617 | </DL> |
||
| 618 | </DD> |
||
| 619 | </DL> |
||
| 620 | <HR> |
||
| 621 | |||
| 622 | <A NAME="addAll(char[], int, int)"><!-- --></A><H3> |
||
| 623 | addAll</H3> |
||
| 624 | <PRE> |
||
| 625 | public void <B>addAll</B>(char[] array, |
||
| 626 | int offset, |
||
| 627 | int length)</PRE> |
||
| 628 | <DL> |
||
| 629 | <DD><DL> |
||
| 630 | </DL> |
||
| 631 | </DD> |
||
| 632 | </DL> |
||
| 633 | <HR> |
||
| 634 | |||
| 635 | <A NAME="get(int)"><!-- --></A><H3> |
||
| 636 | get</H3> |
||
| 637 | <PRE> |
||
| 638 | public char <B>get</B>(int index)</PRE> |
||
| 639 | <DL> |
||
| 640 | <DD><DL> |
||
| 641 | </DL> |
||
| 642 | </DD> |
||
| 643 | </DL> |
||
| 644 | <HR> |
||
| 645 | |||
| 646 | <A NAME="set(int, char)"><!-- --></A><H3> |
||
| 647 | set</H3> |
||
| 648 | <PRE> |
||
| 649 | public void <B>set</B>(int index, |
||
| 650 | char value)</PRE> |
||
| 651 | <DL> |
||
| 652 | <DD><DL> |
||
| 653 | </DL> |
||
| 654 | </DD> |
||
| 655 | </DL> |
||
| 656 | <HR> |
||
| 657 | |||
| 658 | <A NAME="insert(int, char)"><!-- --></A><H3> |
||
| 659 | insert</H3> |
||
| 660 | <PRE> |
||
| 661 | public void <B>insert</B>(int index, |
||
| 662 | char value)</PRE> |
||
| 663 | <DL> |
||
| 664 | <DD><DL> |
||
| 665 | </DL> |
||
| 666 | </DD> |
||
| 667 | </DL> |
||
| 668 | <HR> |
||
| 669 | |||
| 670 | <A NAME="contains(char)"><!-- --></A><H3> |
||
| 671 | contains</H3> |
||
| 672 | <PRE> |
||
| 673 | public boolean <B>contains</B>(char value)</PRE> |
||
| 674 | <DL> |
||
| 675 | <DD><DL> |
||
| 676 | </DL> |
||
| 677 | </DD> |
||
| 678 | </DL> |
||
| 679 | <HR> |
||
| 680 | |||
| 681 | <A NAME="indexOf(char)"><!-- --></A><H3> |
||
| 682 | indexOf</H3> |
||
| 683 | <PRE> |
||
| 684 | public int <B>indexOf</B>(char value)</PRE> |
||
| 685 | <DL> |
||
| 686 | <DD><DL> |
||
| 687 | </DL> |
||
| 688 | </DD> |
||
| 689 | </DL> |
||
| 690 | <HR> |
||
| 691 | |||
| 692 | <A NAME="removeValue(char)"><!-- --></A><H3> |
||
| 693 | removeValue</H3> |
||
| 694 | <PRE> |
||
| 695 | public boolean <B>removeValue</B>(char value)</PRE> |
||
| 696 | <DL> |
||
| 697 | <DD><DL> |
||
| 698 | </DL> |
||
| 699 | </DD> |
||
| 700 | </DL> |
||
| 701 | <HR> |
||
| 702 | |||
| 703 | <A NAME="removeIndex(int)"><!-- --></A><H3> |
||
| 704 | removeIndex</H3> |
||
| 705 | <PRE> |
||
| 706 | public char <B>removeIndex</B>(int index)</PRE> |
||
| 707 | <DL> |
||
| 708 | <DD>Removes and returns the item at the specified index. |
||
| 709 | <P> |
||
| 710 | <DD><DL> |
||
| 711 | </DL> |
||
| 712 | </DD> |
||
| 713 | </DL> |
||
| 714 | <HR> |
||
| 715 | |||
| 716 | <A NAME="pop()"><!-- --></A><H3> |
||
| 717 | pop</H3> |
||
| 718 | <PRE> |
||
| 719 | public char <B>pop</B>()</PRE> |
||
| 720 | <DL> |
||
| 721 | <DD>Removes and returns the last item. |
||
| 722 | <P> |
||
| 723 | <DD><DL> |
||
| 724 | </DL> |
||
| 725 | </DD> |
||
| 726 | </DL> |
||
| 727 | <HR> |
||
| 728 | |||
| 729 | <A NAME="peek()"><!-- --></A><H3> |
||
| 730 | peek</H3> |
||
| 731 | <PRE> |
||
| 732 | public char <B>peek</B>()</PRE> |
||
| 733 | <DL> |
||
| 734 | <DD>Returns the last item. |
||
| 735 | <P> |
||
| 736 | <DD><DL> |
||
| 737 | </DL> |
||
| 738 | </DD> |
||
| 739 | </DL> |
||
| 740 | <HR> |
||
| 741 | |||
| 742 | <A NAME="clear()"><!-- --></A><H3> |
||
| 743 | clear</H3> |
||
| 744 | <PRE> |
||
| 745 | public void <B>clear</B>()</PRE> |
||
| 746 | <DL> |
||
| 747 | <DD><DL> |
||
| 748 | </DL> |
||
| 749 | </DD> |
||
| 750 | </DL> |
||
| 751 | <HR> |
||
| 752 | |||
| 753 | <A NAME="shrink()"><!-- --></A><H3> |
||
| 754 | shrink</H3> |
||
| 755 | <PRE> |
||
| 756 | public void <B>shrink</B>()</PRE> |
||
| 757 | <DL> |
||
| 758 | <DD>Reduces the size of the backing array to the size of the actual items. This is useful to release memory when many items have |
||
| 759 | been removed, or if it is known that more items will not be added. |
||
| 760 | <P> |
||
| 761 | <DD><DL> |
||
| 762 | </DL> |
||
| 763 | </DD> |
||
| 764 | </DL> |
||
| 765 | <HR> |
||
| 766 | |||
| 767 | <A NAME="ensureCapacity(int)"><!-- --></A><H3> |
||
| 768 | ensureCapacity</H3> |
||
| 769 | <PRE> |
||
| 770 | public char[] <B>ensureCapacity</B>(int additionalCapacity)</PRE> |
||
| 771 | <DL> |
||
| 772 | <DD>Increases the size of the backing array to acommodate the specified number of additional items. Useful before adding many |
||
| 773 | items to avoid multiple backing array resizes. |
||
| 774 | <P> |
||
| 775 | <DD><DL> |
||
| 776 | |||
| 777 | <DT><B>Returns:</B><DD><A HREF="../../../../com/badlogic/gdx/utils/CharArray.html#items"><CODE>items</CODE></A></DL> |
||
| 778 | </DD> |
||
| 779 | </DL> |
||
| 780 | <HR> |
||
| 781 | |||
| 782 | <A NAME="resize(int)"><!-- --></A><H3> |
||
| 783 | resize</H3> |
||
| 784 | <PRE> |
||
| 785 | protected char[] <B>resize</B>(int newSize)</PRE> |
||
| 786 | <DL> |
||
| 787 | <DD><DL> |
||
| 788 | </DL> |
||
| 789 | </DD> |
||
| 790 | </DL> |
||
| 791 | <HR> |
||
| 792 | |||
| 793 | <A NAME="sort()"><!-- --></A><H3> |
||
| 794 | sort</H3> |
||
| 795 | <PRE> |
||
| 796 | public void <B>sort</B>()</PRE> |
||
| 797 | <DL> |
||
| 798 | <DD><DL> |
||
| 799 | </DL> |
||
| 800 | </DD> |
||
| 801 | </DL> |
||
| 802 | <HR> |
||
| 803 | |||
| 804 | <A NAME="reverse()"><!-- --></A><H3> |
||
| 805 | reverse</H3> |
||
| 806 | <PRE> |
||
| 807 | public void <B>reverse</B>()</PRE> |
||
| 808 | <DL> |
||
| 809 | <DD><DL> |
||
| 810 | </DL> |
||
| 811 | </DD> |
||
| 812 | </DL> |
||
| 813 | <HR> |
||
| 814 | |||
| 815 | <A NAME="shuffle()"><!-- --></A><H3> |
||
| 816 | shuffle</H3> |
||
| 817 | <PRE> |
||
| 818 | public void <B>shuffle</B>()</PRE> |
||
| 819 | <DL> |
||
| 820 | <DD><DL> |
||
| 821 | </DL> |
||
| 822 | </DD> |
||
| 823 | </DL> |
||
| 824 | <HR> |
||
| 825 | |||
| 826 | <A NAME="truncate(int)"><!-- --></A><H3> |
||
| 827 | truncate</H3> |
||
| 828 | <PRE> |
||
| 829 | public void <B>truncate</B>(int newSize)</PRE> |
||
| 830 | <DL> |
||
| 831 | <DD>Reduces the size of the array to the specified size. If the array is already smaller than the specified size, no action is |
||
| 832 | taken. |
||
| 833 | <P> |
||
| 834 | <DD><DL> |
||
| 835 | </DL> |
||
| 836 | </DD> |
||
| 837 | </DL> |
||
| 838 | <HR> |
||
| 839 | |||
| 840 | <A NAME="random()"><!-- --></A><H3> |
||
| 841 | random</H3> |
||
| 842 | <PRE> |
||
| 843 | public char <B>random</B>()</PRE> |
||
| 844 | <DL> |
||
| 845 | <DD>Returns a random item from the array, or zero if the array is empty. |
||
| 846 | <P> |
||
| 847 | <DD><DL> |
||
| 848 | </DL> |
||
| 849 | </DD> |
||
| 850 | </DL> |
||
| 851 | <HR> |
||
| 852 | |||
| 853 | <A NAME="toArray()"><!-- --></A><H3> |
||
| 854 | toArray</H3> |
||
| 855 | <PRE> |
||
| 856 | public char[] <B>toArray</B>()</PRE> |
||
| 857 | <DL> |
||
| 858 | <DD><DL> |
||
| 859 | </DL> |
||
| 860 | </DD> |
||
| 861 | </DL> |
||
| 862 | <HR> |
||
| 863 | |||
| 864 | <A NAME="toString()"><!-- --></A><H3> |
||
| 865 | toString</H3> |
||
| 866 | <PRE> |
||
| 867 | public java.lang.String <B>toString</B>()</PRE> |
||
| 868 | <DL> |
||
| 869 | <DD><DL> |
||
| 870 | <DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL> |
||
| 871 | </DD> |
||
| 872 | <DD><DL> |
||
| 873 | </DL> |
||
| 874 | </DD> |
||
| 875 | </DL> |
||
| 876 | <HR> |
||
| 877 | |||
| 878 | <A NAME="toString(java.lang.String)"><!-- --></A><H3> |
||
| 879 | toString</H3> |
||
| 880 | <PRE> |
||
| 881 | public java.lang.String <B>toString</B>(java.lang.String separator)</PRE> |
||
| 882 | <DL> |
||
| 883 | <DD><DL> |
||
| 884 | </DL> |
||
| 885 | </DD> |
||
| 886 | </DL> |
||
| 887 | <!-- ========= END OF CLASS DATA ========= --> |
||
| 888 | <HR> |
||
| 889 | |||
| 890 | |||
| 891 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
||
| 892 | <A NAME="navbar_bottom"><!-- --></A> |
||
| 893 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
||
| 894 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
||
| 895 | <TR> |
||
| 896 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
||
| 897 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
||
| 898 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
||
| 899 | <TR ALIGN="center" VALIGN="top"> |
||
| 900 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
||
| 901 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
||
| 902 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
||
| 903 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/CharArray.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
||
| 904 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
||
| 905 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
||
| 906 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
||
| 907 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
||
| 908 | </TR> |
||
| 909 | </TABLE> |
||
| 910 | </TD> |
||
| 911 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
||
| 912 | libgdx API</EM> |
||
| 913 | </TD> |
||
| 914 | </TR> |
||
| 915 | |||
| 916 | <TR> |
||
| 917 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
||
| 918 | <A HREF="../../../../com/badlogic/gdx/utils/BufferUtils.html" title="class in com.badlogic.gdx.utils"><B>PREV CLASS</B></A> |
||
| 919 | <A HREF="../../../../com/badlogic/gdx/utils/Disposable.html" title="interface in com.badlogic.gdx.utils"><B>NEXT CLASS</B></A></FONT></TD> |
||
| 920 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
||
| 921 | <A HREF="../../../../index.html?com/badlogic/gdx/utils/CharArray.html" target="_top"><B>FRAMES</B></A> |
||
| 922 | <A HREF="CharArray.html" target="_top"><B>NO FRAMES</B></A> |
||
| 923 | <SCRIPT type="text/javascript"> |
||
| 924 | <!-- |
||
| 925 | if(window==top) { |
||
| 926 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
||
| 927 | } |
||
| 928 | //--> |
||
| 929 | </SCRIPT> |
||
| 930 | <NOSCRIPT> |
||
| 931 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
||
| 932 | </NOSCRIPT> |
||
| 933 | |||
| 934 | |||
| 935 | </FONT></TD> |
||
| 936 | </TR> |
||
| 937 | <TR> |
||
| 938 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
||
| 939 | SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
||
| 940 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
||
| 941 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
||
| 942 | </TR> |
||
| 943 | </TABLE> |
||
| 944 | <A NAME="skip-navbar_bottom"></A> |
||
| 945 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
||
| 946 | |||
| 947 | <HR> |
||
| 948 | |||
| 949 | <div style="font-size:9pt"><i> |
||
| 950 | Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com) |
||
| 951 | </i></div> |
||
| 952 | |||
| 953 | </BODY> |
||
| 954 | </HTML> |