Class FloatList
java.lang.Object
zombie.core.Styles.FloatList
- All Implemented Interfaces:
Serializable
Quickly hacked together expandable list of floats
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionFloatList constructor comment.FloatList(int size) FloatList constructor comment.FloatList(FloatList.ExpandStyle expandStylex, int int0) -
Method Summary
Modifier and TypeMethodDescriptionfloatadd(float f) add method comment.voidaddAll(float[] floats) voidadd method comment.float[]array()intcapacity()Insert the method's description here.voidclear()clear method comment.voidensureCapacity(int size) Ensure the list is at least 'size' elements big.floatget(int index) get method comment.booleanisEmpty()isEmpty method comment.floatremove(int idx) Remove an element and return it.intsize()size method comment.voidvoidPack list to its minimum size.
-
Constructor Details
-
FloatList
public FloatList()FloatList constructor comment. -
FloatList
public FloatList(int size) FloatList constructor comment. -
FloatList
-
-
Method Details
-
add
public float add(float f) add method comment. -
remove
public float remove(int idx) Remove an element and return it.- Parameters:
idx- The index of the element to remove- Returns:
- the removed value
-
addAll
public void addAll(float[] floats) -
addAll
add method comment. -
array
public float[] array() -
capacity
public int capacity()Insert the method's description here. Creation date: (11/03/2001 17:19:01) -
clear
public void clear()clear method comment. -
ensureCapacity
public void ensureCapacity(int size) Ensure the list is at least 'size' elements big. -
get
public float get(int index) get method comment. -
isEmpty
public boolean isEmpty()isEmpty method comment. -
size
public int size()size method comment. -
toArray
-
trimToSize
public void trimToSize()Pack list to its minimum size.
-