public final class FloatArray
extends java.lang.Object
Constructor | Description |
---|---|
FloatArray() |
|
FloatArray(int capacity) |
Modifier and Type | Method | Description |
---|---|---|
void |
add(float f) |
Append a float to the end of the array.
|
float |
get(int index) |
Read value from the array.
|
int |
getSize() |
Returns the number of elements added to the array.
|
void |
set(int index,
float value) |
Write a value to the specified index.
|
float[] |
trim() |
Return a copy of the array, trimmed to fit the size of its contents
exactly.
|
public final void add(float f)
f
- public final void set(int index, float value)
index
- value
- public final float get(int index)
index
- index into the arraypublic final int getSize()
public final float[] trim()