com.partnersoft.v3x.data
Class LongBuffer
java.lang.Object
com.partnersoft.v3x.data.GrowableArray
com.partnersoft.v3x.data.LongBuffer
public class LongBuffer
- extends GrowableArray
A fast long array buffer with public access to contents. Intended for fast
and unsafe operations.
|
Field Summary |
long[] |
array
|
|
Constructor Summary |
LongBuffer()
Creates an empty long buffer. |
LongBuffer(int size)
Creates a long buffer of the given size. |
|
Method Summary |
void |
addLong(long newLong)
|
void |
addLong(long newLong,
int minimumGrowth)
|
void |
newArray(int size)
Allocates a new, empty array of the given size and assign it to the
arrayObject property. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
array
public long[] array
LongBuffer
public LongBuffer()
- Creates an empty long buffer. buffer is left null!
LongBuffer
public LongBuffer(int size)
- Creates a long buffer of the given size.
newArray
public void newArray(int size)
- Description copied from class:
GrowableArray
- Allocates a new, empty array of the given size and assign it to the
arrayObject property. It is assumed that subclasses will also set it to a
variable of the correct class (e.g. char[]) for ease of access as well.
Copying of existing contents is managed by this superclass.
- Specified by:
newArray in class GrowableArray
addLong
public void addLong(long newLong)
addLong
public void addLong(long newLong,
int minimumGrowth)