org.cementj.collect
Class FloatArrayList

java.lang.Object
  extended by org.cementj.collect.FloatArrayList
All Implemented Interfaces:
java.io.Serializable

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

Dynamic list for float primitives. This class does NOT implement java.util.List.

Copyright: Delta Vortex Technologies, 2002.

See Also:
Serialized Form

Constructor Summary
FloatArrayList()
           
FloatArrayList(int initialCapacity)
           
FloatArrayList(int initialCapacity, int capacityIncrement)
           
 
Method Summary
 void add(float value)
          Adds a value to the end of the list.
 float get(int index)
          Returns value at specified index from the list.
 int length()
          Returns length of list.
 float[] toArray()
          Converts list to an array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FloatArrayList

public FloatArrayList()

FloatArrayList

public FloatArrayList(int initialCapacity)

FloatArrayList

public FloatArrayList(int initialCapacity,
                      int capacityIncrement)
Method Detail

add

public void add(float value)
Adds a value to the end of the list.

Parameters:
value -

get

public float get(int index)
Returns value at specified index from the list.

Parameters:
index -
Returns:
value

toArray

public float[] toArray()
Converts list to an array.

Returns:
listAsArray

length

public int length()
Returns length of list.

Returns:
listLength


Copyright © 2003 Delta Vortex Technologies, Inc. All Rights Reserved.