Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 356 | 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 Sun Jan 27 20:37:08 CET 2013 --> |
||
| 6 | <TITLE> |
||
| 7 | FloatArray (libgdx API) |
||
| 8 | </TITLE> |
||
| 9 | |||
| 10 | <META NAME="date" CONTENT="2013-01-27"> |
||
| 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="FloatArray (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/FloatArray.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/Disposable.html" title="interface in com.badlogic.gdx.utils"><B>PREV CLASS</B></A> |
||
| 74 | <A HREF="../../../../com/badlogic/gdx/utils/GdxBuild.html" title="class 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/FloatArray.html" target="_top"><B>FRAMES</B></A> |
||
| 77 | <A HREF="FloatArray.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 FloatArray</H2> |
||
| 109 | <PRE> |
||
| 110 | java.lang.Object |
||
| 111 | <IMG SRC="../../../../resources/inherit.gif" ALT="extended by "><B>com.badlogic.gdx.utils.FloatArray</B> |
||
| 112 | </PRE> |
||
| 113 | <HR> |
||
| 114 | <DL> |
||
| 115 | <DT><PRE>public class <B>FloatArray</B><DT>extends java.lang.Object</DL> |
||
| 116 | </PRE> |
||
| 117 | |||
| 118 | <P> |
||
| 119 | A resizable, ordered or unordered float array. Avoids the boxing that occurs with ArrayList<Float>. 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> float[]</CODE></FONT></TD> |
||
| 142 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/FloatArray.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/FloatArray.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/FloatArray.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/FloatArray.html#FloatArray()">FloatArray</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/FloatArray.html#FloatArray(boolean, float[])">FloatArray</A></B>(boolean ordered, |
||
| 181 | float[] 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/FloatArray.html#FloatArray(boolean, int)">FloatArray</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/FloatArray.html#FloatArray(float[])">FloatArray</A></B>(float[] 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/FloatArray.html#FloatArray(com.badlogic.gdx.utils.FloatArray)">FloatArray</A></B>(<A HREF="../../../../com/badlogic/gdx/utils/FloatArray.html" title="class in com.badlogic.gdx.utils">FloatArray</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/FloatArray.html#FloatArray(int)">FloatArray</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/FloatArray.html#add(float)">add</A></B>(float 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/FloatArray.html#addAll(float[])">addAll</A></B>(float[] 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/FloatArray.html#addAll(float[], int, int)">addAll</A></B>(float[] 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/FloatArray.html#addAll(com.badlogic.gdx.utils.FloatArray)">addAll</A></B>(<A HREF="../../../../com/badlogic/gdx/utils/FloatArray.html" title="class in com.badlogic.gdx.utils">FloatArray</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/FloatArray.html#addAll(com.badlogic.gdx.utils.FloatArray, int, int)">addAll</A></B>(<A HREF="../../../../com/badlogic/gdx/utils/FloatArray.html" title="class in com.badlogic.gdx.utils">FloatArray</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/FloatArray.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/FloatArray.html#contains(float)">contains</A></B>(float 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> float[]</CODE></FONT></TD> |
||
| 284 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/FloatArray.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> boolean</CODE></FONT></TD> |
||
| 292 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/FloatArray.html#equals(java.lang.Object)">equals</A></B>(java.lang.Object object)</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> float</CODE></FONT></TD> |
||
| 300 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/FloatArray.html#first()">first</A></B>()</CODE> |
||
| 301 | |||
| 302 | <BR> |
||
| 303 | Returns the first item.</TD> |
||
| 304 | </TR> |
||
| 305 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 306 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 307 | <CODE> float</CODE></FONT></TD> |
||
| 308 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/FloatArray.html#get(int)">get</A></B>(int index)</CODE> |
||
| 309 | |||
| 310 | <BR> |
||
| 311 | </TD> |
||
| 312 | </TR> |
||
| 313 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 314 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 315 | <CODE> int</CODE></FONT></TD> |
||
| 316 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/FloatArray.html#indexOf(float)">indexOf</A></B>(float value)</CODE> |
||
| 317 | |||
| 318 | <BR> |
||
| 319 | </TD> |
||
| 320 | </TR> |
||
| 321 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 322 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 323 | <CODE> void</CODE></FONT></TD> |
||
| 324 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/FloatArray.html#insert(int, float)">insert</A></B>(int index, |
||
| 325 | float value)</CODE> |
||
| 326 | |||
| 327 | <BR> |
||
| 328 | </TD> |
||
| 329 | </TR> |
||
| 330 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 331 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 332 | <CODE> int</CODE></FONT></TD> |
||
| 333 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/FloatArray.html#lastIndexOf(char)">lastIndexOf</A></B>(char value)</CODE> |
||
| 334 | |||
| 335 | <BR> |
||
| 336 | </TD> |
||
| 337 | </TR> |
||
| 338 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 339 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 340 | <CODE> float</CODE></FONT></TD> |
||
| 341 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/FloatArray.html#peek()">peek</A></B>()</CODE> |
||
| 342 | |||
| 343 | <BR> |
||
| 344 | Returns the last item.</TD> |
||
| 345 | </TR> |
||
| 346 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 347 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 348 | <CODE> float</CODE></FONT></TD> |
||
| 349 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/FloatArray.html#pop()">pop</A></B>()</CODE> |
||
| 350 | |||
| 351 | <BR> |
||
| 352 | Removes and returns the last item.</TD> |
||
| 353 | </TR> |
||
| 354 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 355 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 356 | <CODE> float</CODE></FONT></TD> |
||
| 357 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/FloatArray.html#random()">random</A></B>()</CODE> |
||
| 358 | |||
| 359 | <BR> |
||
| 360 | Returns a random item from the array, or zero if the array is empty.</TD> |
||
| 361 | </TR> |
||
| 362 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 363 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 364 | <CODE> boolean</CODE></FONT></TD> |
||
| 365 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/FloatArray.html#removeAll(com.badlogic.gdx.utils.FloatArray)">removeAll</A></B>(<A HREF="../../../../com/badlogic/gdx/utils/FloatArray.html" title="class in com.badlogic.gdx.utils">FloatArray</A> array)</CODE> |
||
| 366 | |||
| 367 | <BR> |
||
| 368 | Removes from this array all of elements contained in the specified array.</TD> |
||
| 369 | </TR> |
||
| 370 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 371 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 372 | <CODE> float</CODE></FONT></TD> |
||
| 373 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/FloatArray.html#removeIndex(int)">removeIndex</A></B>(int index)</CODE> |
||
| 374 | |||
| 375 | <BR> |
||
| 376 | Removes and returns the item at the specified index.</TD> |
||
| 377 | </TR> |
||
| 378 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 379 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 380 | <CODE> boolean</CODE></FONT></TD> |
||
| 381 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/FloatArray.html#removeValue(float)">removeValue</A></B>(float value)</CODE> |
||
| 382 | |||
| 383 | <BR> |
||
| 384 | </TD> |
||
| 385 | </TR> |
||
| 386 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 387 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 388 | <CODE>protected float[]</CODE></FONT></TD> |
||
| 389 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/FloatArray.html#resize(int)">resize</A></B>(int newSize)</CODE> |
||
| 390 | |||
| 391 | <BR> |
||
| 392 | </TD> |
||
| 393 | </TR> |
||
| 394 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 395 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 396 | <CODE> void</CODE></FONT></TD> |
||
| 397 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/FloatArray.html#reverse()">reverse</A></B>()</CODE> |
||
| 398 | |||
| 399 | <BR> |
||
| 400 | </TD> |
||
| 401 | </TR> |
||
| 402 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 403 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 404 | <CODE> void</CODE></FONT></TD> |
||
| 405 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/FloatArray.html#set(int, float)">set</A></B>(int index, |
||
| 406 | float value)</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> void</CODE></FONT></TD> |
||
| 414 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/FloatArray.html#shrink()">shrink</A></B>()</CODE> |
||
| 415 | |||
| 416 | <BR> |
||
| 417 | Reduces the size of the backing array to the size of the actual items.</TD> |
||
| 418 | </TR> |
||
| 419 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 420 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 421 | <CODE> void</CODE></FONT></TD> |
||
| 422 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/FloatArray.html#shuffle()">shuffle</A></B>()</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/FloatArray.html#sort()">sort</A></B>()</CODE> |
||
| 431 | |||
| 432 | <BR> |
||
| 433 | </TD> |
||
| 434 | </TR> |
||
| 435 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 436 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 437 | <CODE> void</CODE></FONT></TD> |
||
| 438 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/FloatArray.html#swap(int, int)">swap</A></B>(int first, |
||
| 439 | int second)</CODE> |
||
| 440 | |||
| 441 | <BR> |
||
| 442 | </TD> |
||
| 443 | </TR> |
||
| 444 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 445 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 446 | <CODE> float[]</CODE></FONT></TD> |
||
| 447 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/FloatArray.html#toArray()">toArray</A></B>()</CODE> |
||
| 448 | |||
| 449 | <BR> |
||
| 450 | </TD> |
||
| 451 | </TR> |
||
| 452 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 453 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 454 | <CODE> java.lang.String</CODE></FONT></TD> |
||
| 455 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/FloatArray.html#toString()">toString</A></B>()</CODE> |
||
| 456 | |||
| 457 | <BR> |
||
| 458 | </TD> |
||
| 459 | </TR> |
||
| 460 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 461 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 462 | <CODE> java.lang.String</CODE></FONT></TD> |
||
| 463 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/FloatArray.html#toString(java.lang.String)">toString</A></B>(java.lang.String separator)</CODE> |
||
| 464 | |||
| 465 | <BR> |
||
| 466 | </TD> |
||
| 467 | </TR> |
||
| 468 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 469 | <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"> |
||
| 470 | <CODE> void</CODE></FONT></TD> |
||
| 471 | <TD><CODE><B><A HREF="../../../../com/badlogic/gdx/utils/FloatArray.html#truncate(int)">truncate</A></B>(int newSize)</CODE> |
||
| 472 | |||
| 473 | <BR> |
||
| 474 | Reduces the size of the array to the specified size.</TD> |
||
| 475 | </TR> |
||
| 476 | </TABLE> |
||
| 477 | <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A> |
||
| 478 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 479 | <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor"> |
||
| 480 | <TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH> |
||
| 481 | </TR> |
||
| 482 | <TR BGCOLOR="white" CLASS="TableRowColor"> |
||
| 483 | <TD><CODE>clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait</CODE></TD> |
||
| 484 | </TR> |
||
| 485 | </TABLE> |
||
| 486 | |
||
| 487 | <P> |
||
| 488 | |||
| 489 | <!-- ============ FIELD DETAIL =========== --> |
||
| 490 | |||
| 491 | <A NAME="field_detail"><!-- --></A> |
||
| 492 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 493 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
| 494 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
||
| 495 | <B>Field Detail</B></FONT></TH> |
||
| 496 | </TR> |
||
| 497 | </TABLE> |
||
| 498 | |||
| 499 | <A NAME="items"><!-- --></A><H3> |
||
| 500 | items</H3> |
||
| 501 | <PRE> |
||
| 502 | public float[] <B>items</B></PRE> |
||
| 503 | <DL> |
||
| 504 | <DL> |
||
| 505 | </DL> |
||
| 506 | </DL> |
||
| 507 | <HR> |
||
| 508 | |||
| 509 | <A NAME="size"><!-- --></A><H3> |
||
| 510 | size</H3> |
||
| 511 | <PRE> |
||
| 512 | public int <B>size</B></PRE> |
||
| 513 | <DL> |
||
| 514 | <DL> |
||
| 515 | </DL> |
||
| 516 | </DL> |
||
| 517 | <HR> |
||
| 518 | |||
| 519 | <A NAME="ordered"><!-- --></A><H3> |
||
| 520 | ordered</H3> |
||
| 521 | <PRE> |
||
| 522 | public boolean <B>ordered</B></PRE> |
||
| 523 | <DL> |
||
| 524 | <DL> |
||
| 525 | </DL> |
||
| 526 | </DL> |
||
| 527 | |||
| 528 | <!-- ========= CONSTRUCTOR DETAIL ======== --> |
||
| 529 | |||
| 530 | <A NAME="constructor_detail"><!-- --></A> |
||
| 531 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 532 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
| 533 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
||
| 534 | <B>Constructor Detail</B></FONT></TH> |
||
| 535 | </TR> |
||
| 536 | </TABLE> |
||
| 537 | |||
| 538 | <A NAME="FloatArray()"><!-- --></A><H3> |
||
| 539 | FloatArray</H3> |
||
| 540 | <PRE> |
||
| 541 | public <B>FloatArray</B>()</PRE> |
||
| 542 | <DL> |
||
| 543 | <DD>Creates an ordered array with a capacity of 16. |
||
| 544 | <P> |
||
| 545 | </DL> |
||
| 546 | <HR> |
||
| 547 | |||
| 548 | <A NAME="FloatArray(int)"><!-- --></A><H3> |
||
| 549 | FloatArray</H3> |
||
| 550 | <PRE> |
||
| 551 | public <B>FloatArray</B>(int capacity)</PRE> |
||
| 552 | <DL> |
||
| 553 | <DD>Creates an ordered array with the specified capacity. |
||
| 554 | <P> |
||
| 555 | </DL> |
||
| 556 | <HR> |
||
| 557 | |||
| 558 | <A NAME="FloatArray(boolean, int)"><!-- --></A><H3> |
||
| 559 | FloatArray</H3> |
||
| 560 | <PRE> |
||
| 561 | public <B>FloatArray</B>(boolean ordered, |
||
| 562 | int capacity)</PRE> |
||
| 563 | <DL> |
||
| 564 | <DL> |
||
| 565 | <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 |
||
| 566 | memory copy.<DD><CODE>capacity</CODE> - Any elements added beyond this will cause the backing array to be grown.</DL> |
||
| 567 | </DL> |
||
| 568 | <HR> |
||
| 569 | |||
| 570 | <A NAME="FloatArray(com.badlogic.gdx.utils.FloatArray)"><!-- --></A><H3> |
||
| 571 | FloatArray</H3> |
||
| 572 | <PRE> |
||
| 573 | public <B>FloatArray</B>(<A HREF="../../../../com/badlogic/gdx/utils/FloatArray.html" title="class in com.badlogic.gdx.utils">FloatArray</A> array)</PRE> |
||
| 574 | <DL> |
||
| 575 | <DD>Creates a new array containing the elements in the specific array. The new array will be ordered if the specific array is |
||
| 576 | ordered. The capacity is set to the number of elements, so any subsequent elements added will cause the backing array to be |
||
| 577 | grown. |
||
| 578 | <P> |
||
| 579 | </DL> |
||
| 580 | <HR> |
||
| 581 | |||
| 582 | <A NAME="FloatArray(float[])"><!-- --></A><H3> |
||
| 583 | FloatArray</H3> |
||
| 584 | <PRE> |
||
| 585 | public <B>FloatArray</B>(float[] array)</PRE> |
||
| 586 | <DL> |
||
| 587 | <DD>Creates a new ordered array containing the elements in the specified array. The capacity is set to the number of elements, |
||
| 588 | so any subsequent elements added will cause the backing array to be grown. |
||
| 589 | <P> |
||
| 590 | </DL> |
||
| 591 | <HR> |
||
| 592 | |||
| 593 | <A NAME="FloatArray(boolean, float[])"><!-- --></A><H3> |
||
| 594 | FloatArray</H3> |
||
| 595 | <PRE> |
||
| 596 | public <B>FloatArray</B>(boolean ordered, |
||
| 597 | float[] array)</PRE> |
||
| 598 | <DL> |
||
| 599 | <DD>Creates a new array containing the elements in the specified array. The capacity is set to the number of elements, so any |
||
| 600 | subsequent elements added will cause the backing array to be grown. |
||
| 601 | <P> |
||
| 602 | <DL> |
||
| 603 | <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 |
||
| 604 | memory copy.</DL> |
||
| 605 | </DL> |
||
| 606 | |||
| 607 | <!-- ============ METHOD DETAIL ========== --> |
||
| 608 | |||
| 609 | <A NAME="method_detail"><!-- --></A> |
||
| 610 | <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY=""> |
||
| 611 | <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"> |
||
| 612 | <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2"> |
||
| 613 | <B>Method Detail</B></FONT></TH> |
||
| 614 | </TR> |
||
| 615 | </TABLE> |
||
| 616 | |||
| 617 | <A NAME="add(float)"><!-- --></A><H3> |
||
| 618 | add</H3> |
||
| 619 | <PRE> |
||
| 620 | public void <B>add</B>(float value)</PRE> |
||
| 621 | <DL> |
||
| 622 | <DD><DL> |
||
| 623 | </DL> |
||
| 624 | </DD> |
||
| 625 | </DL> |
||
| 626 | <HR> |
||
| 627 | |||
| 628 | <A NAME="addAll(com.badlogic.gdx.utils.FloatArray)"><!-- --></A><H3> |
||
| 629 | addAll</H3> |
||
| 630 | <PRE> |
||
| 631 | public void <B>addAll</B>(<A HREF="../../../../com/badlogic/gdx/utils/FloatArray.html" title="class in com.badlogic.gdx.utils">FloatArray</A> array)</PRE> |
||
| 632 | <DL> |
||
| 633 | <DD><DL> |
||
| 634 | </DL> |
||
| 635 | </DD> |
||
| 636 | </DL> |
||
| 637 | <HR> |
||
| 638 | |||
| 639 | <A NAME="addAll(com.badlogic.gdx.utils.FloatArray, int, int)"><!-- --></A><H3> |
||
| 640 | addAll</H3> |
||
| 641 | <PRE> |
||
| 642 | public void <B>addAll</B>(<A HREF="../../../../com/badlogic/gdx/utils/FloatArray.html" title="class in com.badlogic.gdx.utils">FloatArray</A> array, |
||
| 643 | int offset, |
||
| 644 | int length)</PRE> |
||
| 645 | <DL> |
||
| 646 | <DD><DL> |
||
| 647 | </DL> |
||
| 648 | </DD> |
||
| 649 | </DL> |
||
| 650 | <HR> |
||
| 651 | |||
| 652 | <A NAME="addAll(float[])"><!-- --></A><H3> |
||
| 653 | addAll</H3> |
||
| 654 | <PRE> |
||
| 655 | public void <B>addAll</B>(float[] array)</PRE> |
||
| 656 | <DL> |
||
| 657 | <DD><DL> |
||
| 658 | </DL> |
||
| 659 | </DD> |
||
| 660 | </DL> |
||
| 661 | <HR> |
||
| 662 | |||
| 663 | <A NAME="addAll(float[], int, int)"><!-- --></A><H3> |
||
| 664 | addAll</H3> |
||
| 665 | <PRE> |
||
| 666 | public void <B>addAll</B>(float[] array, |
||
| 667 | int offset, |
||
| 668 | int length)</PRE> |
||
| 669 | <DL> |
||
| 670 | <DD><DL> |
||
| 671 | </DL> |
||
| 672 | </DD> |
||
| 673 | </DL> |
||
| 674 | <HR> |
||
| 675 | |||
| 676 | <A NAME="get(int)"><!-- --></A><H3> |
||
| 677 | get</H3> |
||
| 678 | <PRE> |
||
| 679 | public float <B>get</B>(int index)</PRE> |
||
| 680 | <DL> |
||
| 681 | <DD><DL> |
||
| 682 | </DL> |
||
| 683 | </DD> |
||
| 684 | </DL> |
||
| 685 | <HR> |
||
| 686 | |||
| 687 | <A NAME="set(int, float)"><!-- --></A><H3> |
||
| 688 | set</H3> |
||
| 689 | <PRE> |
||
| 690 | public void <B>set</B>(int index, |
||
| 691 | float value)</PRE> |
||
| 692 | <DL> |
||
| 693 | <DD><DL> |
||
| 694 | </DL> |
||
| 695 | </DD> |
||
| 696 | </DL> |
||
| 697 | <HR> |
||
| 698 | |||
| 699 | <A NAME="insert(int, float)"><!-- --></A><H3> |
||
| 700 | insert</H3> |
||
| 701 | <PRE> |
||
| 702 | public void <B>insert</B>(int index, |
||
| 703 | float value)</PRE> |
||
| 704 | <DL> |
||
| 705 | <DD><DL> |
||
| 706 | </DL> |
||
| 707 | </DD> |
||
| 708 | </DL> |
||
| 709 | <HR> |
||
| 710 | |||
| 711 | <A NAME="swap(int, int)"><!-- --></A><H3> |
||
| 712 | swap</H3> |
||
| 713 | <PRE> |
||
| 714 | public void <B>swap</B>(int first, |
||
| 715 | int second)</PRE> |
||
| 716 | <DL> |
||
| 717 | <DD><DL> |
||
| 718 | </DL> |
||
| 719 | </DD> |
||
| 720 | </DL> |
||
| 721 | <HR> |
||
| 722 | |||
| 723 | <A NAME="contains(float)"><!-- --></A><H3> |
||
| 724 | contains</H3> |
||
| 725 | <PRE> |
||
| 726 | public boolean <B>contains</B>(float value)</PRE> |
||
| 727 | <DL> |
||
| 728 | <DD><DL> |
||
| 729 | </DL> |
||
| 730 | </DD> |
||
| 731 | </DL> |
||
| 732 | <HR> |
||
| 733 | |||
| 734 | <A NAME="indexOf(float)"><!-- --></A><H3> |
||
| 735 | indexOf</H3> |
||
| 736 | <PRE> |
||
| 737 | public int <B>indexOf</B>(float value)</PRE> |
||
| 738 | <DL> |
||
| 739 | <DD><DL> |
||
| 740 | </DL> |
||
| 741 | </DD> |
||
| 742 | </DL> |
||
| 743 | <HR> |
||
| 744 | |||
| 745 | <A NAME="lastIndexOf(char)"><!-- --></A><H3> |
||
| 746 | lastIndexOf</H3> |
||
| 747 | <PRE> |
||
| 748 | public int <B>lastIndexOf</B>(char value)</PRE> |
||
| 749 | <DL> |
||
| 750 | <DD><DL> |
||
| 751 | </DL> |
||
| 752 | </DD> |
||
| 753 | </DL> |
||
| 754 | <HR> |
||
| 755 | |||
| 756 | <A NAME="removeValue(float)"><!-- --></A><H3> |
||
| 757 | removeValue</H3> |
||
| 758 | <PRE> |
||
| 759 | public boolean <B>removeValue</B>(float value)</PRE> |
||
| 760 | <DL> |
||
| 761 | <DD><DL> |
||
| 762 | </DL> |
||
| 763 | </DD> |
||
| 764 | </DL> |
||
| 765 | <HR> |
||
| 766 | |||
| 767 | <A NAME="removeIndex(int)"><!-- --></A><H3> |
||
| 768 | removeIndex</H3> |
||
| 769 | <PRE> |
||
| 770 | public float <B>removeIndex</B>(int index)</PRE> |
||
| 771 | <DL> |
||
| 772 | <DD>Removes and returns the item at the specified index. |
||
| 773 | <P> |
||
| 774 | <DD><DL> |
||
| 775 | </DL> |
||
| 776 | </DD> |
||
| 777 | </DL> |
||
| 778 | <HR> |
||
| 779 | |||
| 780 | <A NAME="removeAll(com.badlogic.gdx.utils.FloatArray)"><!-- --></A><H3> |
||
| 781 | removeAll</H3> |
||
| 782 | <PRE> |
||
| 783 | public boolean <B>removeAll</B>(<A HREF="../../../../com/badlogic/gdx/utils/FloatArray.html" title="class in com.badlogic.gdx.utils">FloatArray</A> array)</PRE> |
||
| 784 | <DL> |
||
| 785 | <DD>Removes from this array all of elements contained in the specified array. |
||
| 786 | <P> |
||
| 787 | <DD><DL> |
||
| 788 | |||
| 789 | <DT><B>Returns:</B><DD>true if this array was modified.</DL> |
||
| 790 | </DD> |
||
| 791 | </DL> |
||
| 792 | <HR> |
||
| 793 | |||
| 794 | <A NAME="pop()"><!-- --></A><H3> |
||
| 795 | pop</H3> |
||
| 796 | <PRE> |
||
| 797 | public float <B>pop</B>()</PRE> |
||
| 798 | <DL> |
||
| 799 | <DD>Removes and returns the last item. |
||
| 800 | <P> |
||
| 801 | <DD><DL> |
||
| 802 | </DL> |
||
| 803 | </DD> |
||
| 804 | </DL> |
||
| 805 | <HR> |
||
| 806 | |||
| 807 | <A NAME="peek()"><!-- --></A><H3> |
||
| 808 | peek</H3> |
||
| 809 | <PRE> |
||
| 810 | public float <B>peek</B>()</PRE> |
||
| 811 | <DL> |
||
| 812 | <DD>Returns the last item. |
||
| 813 | <P> |
||
| 814 | <DD><DL> |
||
| 815 | </DL> |
||
| 816 | </DD> |
||
| 817 | </DL> |
||
| 818 | <HR> |
||
| 819 | |||
| 820 | <A NAME="first()"><!-- --></A><H3> |
||
| 821 | first</H3> |
||
| 822 | <PRE> |
||
| 823 | public float <B>first</B>()</PRE> |
||
| 824 | <DL> |
||
| 825 | <DD>Returns the first item. |
||
| 826 | <P> |
||
| 827 | <DD><DL> |
||
| 828 | </DL> |
||
| 829 | </DD> |
||
| 830 | </DL> |
||
| 831 | <HR> |
||
| 832 | |||
| 833 | <A NAME="clear()"><!-- --></A><H3> |
||
| 834 | clear</H3> |
||
| 835 | <PRE> |
||
| 836 | public void <B>clear</B>()</PRE> |
||
| 837 | <DL> |
||
| 838 | <DD><DL> |
||
| 839 | </DL> |
||
| 840 | </DD> |
||
| 841 | </DL> |
||
| 842 | <HR> |
||
| 843 | |||
| 844 | <A NAME="shrink()"><!-- --></A><H3> |
||
| 845 | shrink</H3> |
||
| 846 | <PRE> |
||
| 847 | public void <B>shrink</B>()</PRE> |
||
| 848 | <DL> |
||
| 849 | <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 |
||
| 850 | been removed, or if it is known that more items will not be added. |
||
| 851 | <P> |
||
| 852 | <DD><DL> |
||
| 853 | </DL> |
||
| 854 | </DD> |
||
| 855 | </DL> |
||
| 856 | <HR> |
||
| 857 | |||
| 858 | <A NAME="ensureCapacity(int)"><!-- --></A><H3> |
||
| 859 | ensureCapacity</H3> |
||
| 860 | <PRE> |
||
| 861 | public float[] <B>ensureCapacity</B>(int additionalCapacity)</PRE> |
||
| 862 | <DL> |
||
| 863 | <DD>Increases the size of the backing array to acommodate the specified number of additional items. Useful before adding many |
||
| 864 | items to avoid multiple backing array resizes. |
||
| 865 | <P> |
||
| 866 | <DD><DL> |
||
| 867 | |||
| 868 | <DT><B>Returns:</B><DD><A HREF="../../../../com/badlogic/gdx/utils/FloatArray.html#items"><CODE>items</CODE></A></DL> |
||
| 869 | </DD> |
||
| 870 | </DL> |
||
| 871 | <HR> |
||
| 872 | |||
| 873 | <A NAME="resize(int)"><!-- --></A><H3> |
||
| 874 | resize</H3> |
||
| 875 | <PRE> |
||
| 876 | protected float[] <B>resize</B>(int newSize)</PRE> |
||
| 877 | <DL> |
||
| 878 | <DD><DL> |
||
| 879 | </DL> |
||
| 880 | </DD> |
||
| 881 | </DL> |
||
| 882 | <HR> |
||
| 883 | |||
| 884 | <A NAME="sort()"><!-- --></A><H3> |
||
| 885 | sort</H3> |
||
| 886 | <PRE> |
||
| 887 | public void <B>sort</B>()</PRE> |
||
| 888 | <DL> |
||
| 889 | <DD><DL> |
||
| 890 | </DL> |
||
| 891 | </DD> |
||
| 892 | </DL> |
||
| 893 | <HR> |
||
| 894 | |||
| 895 | <A NAME="reverse()"><!-- --></A><H3> |
||
| 896 | reverse</H3> |
||
| 897 | <PRE> |
||
| 898 | public void <B>reverse</B>()</PRE> |
||
| 899 | <DL> |
||
| 900 | <DD><DL> |
||
| 901 | </DL> |
||
| 902 | </DD> |
||
| 903 | </DL> |
||
| 904 | <HR> |
||
| 905 | |||
| 906 | <A NAME="shuffle()"><!-- --></A><H3> |
||
| 907 | shuffle</H3> |
||
| 908 | <PRE> |
||
| 909 | public void <B>shuffle</B>()</PRE> |
||
| 910 | <DL> |
||
| 911 | <DD><DL> |
||
| 912 | </DL> |
||
| 913 | </DD> |
||
| 914 | </DL> |
||
| 915 | <HR> |
||
| 916 | |||
| 917 | <A NAME="truncate(int)"><!-- --></A><H3> |
||
| 918 | truncate</H3> |
||
| 919 | <PRE> |
||
| 920 | public void <B>truncate</B>(int newSize)</PRE> |
||
| 921 | <DL> |
||
| 922 | <DD>Reduces the size of the array to the specified size. If the array is already smaller than the specified size, no action is |
||
| 923 | taken. |
||
| 924 | <P> |
||
| 925 | <DD><DL> |
||
| 926 | </DL> |
||
| 927 | </DD> |
||
| 928 | </DL> |
||
| 929 | <HR> |
||
| 930 | |||
| 931 | <A NAME="random()"><!-- --></A><H3> |
||
| 932 | random</H3> |
||
| 933 | <PRE> |
||
| 934 | public float <B>random</B>()</PRE> |
||
| 935 | <DL> |
||
| 936 | <DD>Returns a random item from the array, or zero if the array is empty. |
||
| 937 | <P> |
||
| 938 | <DD><DL> |
||
| 939 | </DL> |
||
| 940 | </DD> |
||
| 941 | </DL> |
||
| 942 | <HR> |
||
| 943 | |||
| 944 | <A NAME="toArray()"><!-- --></A><H3> |
||
| 945 | toArray</H3> |
||
| 946 | <PRE> |
||
| 947 | public float[] <B>toArray</B>()</PRE> |
||
| 948 | <DL> |
||
| 949 | <DD><DL> |
||
| 950 | </DL> |
||
| 951 | </DD> |
||
| 952 | </DL> |
||
| 953 | <HR> |
||
| 954 | |||
| 955 | <A NAME="equals(java.lang.Object)"><!-- --></A><H3> |
||
| 956 | equals</H3> |
||
| 957 | <PRE> |
||
| 958 | public boolean <B>equals</B>(java.lang.Object object)</PRE> |
||
| 959 | <DL> |
||
| 960 | <DD><DL> |
||
| 961 | <DT><B>Overrides:</B><DD><CODE>equals</CODE> in class <CODE>java.lang.Object</CODE></DL> |
||
| 962 | </DD> |
||
| 963 | <DD><DL> |
||
| 964 | </DL> |
||
| 965 | </DD> |
||
| 966 | </DL> |
||
| 967 | <HR> |
||
| 968 | |||
| 969 | <A NAME="toString()"><!-- --></A><H3> |
||
| 970 | toString</H3> |
||
| 971 | <PRE> |
||
| 972 | public java.lang.String <B>toString</B>()</PRE> |
||
| 973 | <DL> |
||
| 974 | <DD><DL> |
||
| 975 | <DT><B>Overrides:</B><DD><CODE>toString</CODE> in class <CODE>java.lang.Object</CODE></DL> |
||
| 976 | </DD> |
||
| 977 | <DD><DL> |
||
| 978 | </DL> |
||
| 979 | </DD> |
||
| 980 | </DL> |
||
| 981 | <HR> |
||
| 982 | |||
| 983 | <A NAME="toString(java.lang.String)"><!-- --></A><H3> |
||
| 984 | toString</H3> |
||
| 985 | <PRE> |
||
| 986 | public java.lang.String <B>toString</B>(java.lang.String separator)</PRE> |
||
| 987 | <DL> |
||
| 988 | <DD><DL> |
||
| 989 | </DL> |
||
| 990 | </DD> |
||
| 991 | </DL> |
||
| 992 | <!-- ========= END OF CLASS DATA ========= --> |
||
| 993 | <HR> |
||
| 994 | |||
| 995 | |||
| 996 | <!-- ======= START OF BOTTOM NAVBAR ====== --> |
||
| 997 | <A NAME="navbar_bottom"><!-- --></A> |
||
| 998 | <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A> |
||
| 999 | <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY=""> |
||
| 1000 | <TR> |
||
| 1001 | <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> |
||
| 1002 | <A NAME="navbar_bottom_firstrow"><!-- --></A> |
||
| 1003 | <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY=""> |
||
| 1004 | <TR ALIGN="center" VALIGN="top"> |
||
| 1005 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD> |
||
| 1006 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD> |
||
| 1007 | <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD> |
||
| 1008 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/FloatArray.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD> |
||
| 1009 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD> |
||
| 1010 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD> |
||
| 1011 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD> |
||
| 1012 | <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD> |
||
| 1013 | </TR> |
||
| 1014 | </TABLE> |
||
| 1015 | </TD> |
||
| 1016 | <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM> |
||
| 1017 | libgdx API</EM> |
||
| 1018 | </TD> |
||
| 1019 | </TR> |
||
| 1020 | |||
| 1021 | <TR> |
||
| 1022 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
||
| 1023 | <A HREF="../../../../com/badlogic/gdx/utils/Disposable.html" title="interface in com.badlogic.gdx.utils"><B>PREV CLASS</B></A> |
||
| 1024 | <A HREF="../../../../com/badlogic/gdx/utils/GdxBuild.html" title="class in com.badlogic.gdx.utils"><B>NEXT CLASS</B></A></FONT></TD> |
||
| 1025 | <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2"> |
||
| 1026 | <A HREF="../../../../index.html?com/badlogic/gdx/utils/FloatArray.html" target="_top"><B>FRAMES</B></A> |
||
| 1027 | <A HREF="FloatArray.html" target="_top"><B>NO FRAMES</B></A> |
||
| 1028 | <SCRIPT type="text/javascript"> |
||
| 1029 | <!-- |
||
| 1030 | if(window==top) { |
||
| 1031 | document.writeln('<A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A>'); |
||
| 1032 | } |
||
| 1033 | //--> |
||
| 1034 | </SCRIPT> |
||
| 1035 | <NOSCRIPT> |
||
| 1036 | <A HREF="../../../../allclasses-noframe.html"><B>All Classes</B></A> |
||
| 1037 | </NOSCRIPT> |
||
| 1038 | |||
| 1039 | |||
| 1040 | </FONT></TD> |
||
| 1041 | </TR> |
||
| 1042 | <TR> |
||
| 1043 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
||
| 1044 | SUMMARY: NESTED | <A HREF="#field_summary">FIELD</A> | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD> |
||
| 1045 | <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2"> |
||
| 1046 | DETAIL: <A HREF="#field_detail">FIELD</A> | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD> |
||
| 1047 | </TR> |
||
| 1048 | </TABLE> |
||
| 1049 | <A NAME="skip-navbar_bottom"></A> |
||
| 1050 | <!-- ======== END OF BOTTOM NAVBAR ======= --> |
||
| 1051 | |||
| 1052 | <HR> |
||
| 1053 | |||
| 1054 | <div style="font-size:9pt"><i> |
||
| 1055 | Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com) |
||
| 1056 | </i></div> |
||
| 1057 | |||
| 1058 | </BODY> |
||
| 1059 | </HTML> |