| java.lang.Object com.sun.j3d.internal.FastVector
FastVector | public class FastVector (Code) | | The FastVector object is a growable array of ints. It's much faster
than the Java Vector class because it isn't synchronized. This class
was created because it is needed in several places by graphics
utilities.
|
Constructor Summary | |
public | FastVector(int initialCapacity, int capacityIncrement) Constructor. | public | FastVector(int initialCapacity) Constructor. | public | FastVector() Constructor. |
Method Summary | |
public void | addElement(int element) Add an element to the end of the array. | public int[] | getData() | public int | getSize() |
FastVector | public FastVector(int initialCapacity, int capacityIncrement)(Code) | | Constructor.
Parameters: initialCapacity - Number of ints the object can holdwithout reallocating the array. Parameters: capacityIncrement - Once the array has grown beyondits capacity, how much larger the reallocated array should be. |
FastVector | public FastVector(int initialCapacity)(Code) | | Constructor.
When the array runs out of space, its size is doubled.
Parameters: initialCapacity - Number of ints the object can holdwithout reallocating the array. |
FastVector | public FastVector()(Code) | | Constructor.
The array is constructed with initial capacity of one integer.
When the array runs out of space, its size is doubled.
|
addElement | public void addElement(int element)(Code) | | Add an element to the end of the array.
|
getData | public int[] getData()(Code) | | Get access to array data
|
getSize | public int getSize()(Code) | | Get number of ints currently stored in the array;
|
|
|