|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sunflow.util.FloatArray
public final class FloatArray
Constructor Summary | |
---|---|
FloatArray()
|
|
FloatArray(int capacity)
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FloatArray()
public FloatArray(int capacity)
Method Detail |
---|
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 array
public final int getSize()
public final float[] trim()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |