|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.data.DynamicArray
com.partnersoft.data.DynamicLongArray
public class DynamicLongArray
A managed, dynamically allocated array of longs. Copyright 2001-2006 Partner Software, Inc.
| Field Summary | |
|---|---|
long[] |
array
|
| Fields inherited from class com.partnersoft.data.DynamicArray |
|---|
arrayObject, capacity, end, fastGrowthFactor, fastGrowthLimit, slowGrowthAmount, start |
| Constructor Summary | |
|---|---|
DynamicLongArray()
Creates an empty long array. |
|
DynamicLongArray(int size)
Creates a long array of the given size. |
|
DynamicLongArray(long first,
long... rest)
VarArgs constructor, lets you set the initial values. |
|
| Method Summary | |
|---|---|
void |
add(long what)
Appends a single long to the end of this array. |
void |
append(long... stuff)
Appends the given longs to the end of this array. |
java.lang.String |
contentsToString()
Returns the contents as a String. |
void |
newArray(int size)
Allocates a new, empty array of the given size and assign it to the arrayObject property. |
DynamicByteArray |
toDynamicByteArray()
|
int[] |
toIntArray()
|
| Methods inherited from class com.partnersoft.data.DynamicArray |
|---|
append, clear, copy, copy, copyExactly, copyFrom, copyTo, insert, isEmpty, makeRoomFor, makeRoomFor, pack, remove, size, subsection, tidy, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public long[] array
| Constructor Detail |
|---|
public DynamicLongArray()
public DynamicLongArray(int size)
public DynamicLongArray(long first,
long... rest)
first - first valuerest - other values| Method Detail |
|---|
public void add(long what)
public void append(long... stuff)
public java.lang.String contentsToString()
public DynamicByteArray toDynamicByteArray()
public final int[] toIntArray()
public void newArray(int size)
DynamicArray
public abstract void newArray(int size) {
arrayObject = array = new Foo[size];
}
newArray in class DynamicArray
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||