public class FloatList extends PrimitiveList
| Constructor | 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 | Description |
|---|---|---|
void |
add(float value) |
Appends a value to the end of this list.
|
float |
get(int i) |
Returns the element at a given position.
|
void |
set(int i,
float value) |
Sets the element at a given position.
|
float[] |
toFloatArray() |
Returns the contents of this list as an array.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnextCapacity, 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 float[] toFloatArray()
Copyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.