public class FloatList extends PrimitiveList
| Constructor and Description | 
|---|
FloatList()
Constructs a new list. 
 | 
FloatList(float[] array)
Constructs a new list initialised to the contents of a given array. 
 | 
FloatList(int size)
Constructs a new list with a given initial capacity. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
add(float value)
Appends a value to the end of this list. 
 | 
boolean | 
addAll(float[] array)
Appends all the elements of a primitive array to this list. 
 | 
boolean | 
addAll(FloatList other)
Appends all the elements of a second list to this list. 
 | 
float | 
get(int i)
Returns the element at a given position. 
 | 
float[] | 
getFloatBuffer()
Returns the array currently used to store the contents of this list. 
 | 
void | 
set(int i,
   float value)
Sets the element at a given position. 
 | 
float[] | 
toFloatArray()
Returns the contents of this list as an array. 
 | 
clear, nextCapacity, size, toArraypublic FloatList()
public FloatList(int size)
size - initial capacitypublic FloatList(float[] array)
array - array whose contents form initial contents of listpublic float get(int i)
i - indexipublic void set(int i,
                float value)
i - indexvalue - new value for element ipublic void add(float value)
value - value to appendpublic boolean addAll(FloatList other)
other - other listpublic boolean addAll(float[] array)
array - array to appendpublic float[] toFloatArray()
public float[] getFloatBuffer()