|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.starlink.util.PrimitiveList
uk.ac.starlink.util.FloatList
public class FloatList
Extendable array of floats.
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class uk.ac.starlink.util.PrimitiveList |
|---|
nextCapacity, size, toArray |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FloatList()
public FloatList(int size)
size - initial capacitypublic FloatList(float[] array)
array - array whose contents form initial contents of list| Method Detail |
|---|
public float get(int i)
i - index
i
public void set(int i,
float value)
i - indexvalue - new value for element ipublic void add(float value)
value - value to appendpublic float[] toFloatArray()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||