zombie.core.Styles
Class FloatList

java.lang.Object
  extended by zombie.core.Styles.FloatList
All Implemented Interfaces:
java.io.Serializable

public class FloatList
extends java.lang.Object
implements java.io.Serializable

Quickly hacked together expandable list of floats

See Also:
Serialized Form

Constructor Summary
FloatList()
          FloatList constructor comment.
FloatList(boolean fastExpand, int size)
          FloatList constructor comment.
FloatList(int size)
          FloatList constructor comment.
 
Method Summary
 float add(float f)
          add method comment.
 void addAll(float[] f)
          add method comment.
 void addAll(FloatList f)
          add method comment.
 float[] array()
          toArray method comment.
 int capacity()
          Insert the method's description here.
 void clear()
          clear method comment.
 void ensureCapacity(int size)
          Ensure the list is at least 'size' elements big.
 float get(int index)
          get method comment.
 boolean isEmpty()
          isEmpty method comment.
 float remove(int idx)
          Remove an element and return it.
 int size()
          size method comment.
 void toArray(java.lang.Object[] dest)
          Stash everything in an array.
 void trimToSize()
          Pack list to its minimum size.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FloatList

public FloatList()
FloatList constructor comment.


FloatList

public FloatList(int size)
FloatList constructor comment.


FloatList

public FloatList(boolean fastExpand,
                 int size)
FloatList constructor comment.

Method Detail

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[] f)
add method comment.


addAll

public void addAll(FloatList f)
add method comment.


array

public float[] array()
toArray method comment.


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

public void toArray(java.lang.Object[] dest)
Stash everything in an array.


trimToSize

public void trimToSize()
Pack list to its minimum size.