|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.j3d.internal.FastVector
public class FastVector
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 | |
---|---|
FastVector()
Constructor. |
|
FastVector(int initialCapacity)
Constructor. |
|
FastVector(int initialCapacity,
int capacityIncrement)
Constructor. |
Method Summary | |
---|---|
void |
addElement(int element)
Add an element to the end of the array. |
int[] |
getData()
Get access to array data |
int |
getSize()
Get number of ints currently stored in the array; |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FastVector(int initialCapacity, int capacityIncrement)
initialCapacity
- Number of ints the object can hold
without reallocating the array.capacityIncrement
- Once the array has grown beyond
its capacity, how much larger the reallocated array should be.public FastVector(int initialCapacity)
initialCapacity
- Number of ints the object can hold
without reallocating the array.public FastVector()
Method Detail |
---|
public void addElement(int element)
public int getSize()
public int[] getData()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |