|
|||||||||
| 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.DynamicIntArray
public class DynamicIntArray
A managed, dynamically allocated array of ints.
Copyright 2001-2007 Partner Software, Inc.
| Field Summary | |
|---|---|
int[] |
array
|
| Fields inherited from class com.partnersoft.data.DynamicArray |
|---|
arrayObject, capacity, end, fastGrowthFactor, fastGrowthLimit, slowGrowthAmount, start |
| Constructor Summary | |
|---|---|
DynamicIntArray()
Creates an empty int array. |
|
DynamicIntArray(int size)
Creates an int array of the given size. |
|
DynamicIntArray(int[] array)
Creates an int array from the given base array. |
|
DynamicIntArray(int first,
int... rest)
VarArgs constructor, lets you set the initial values. |
|
DynamicIntArray(java.lang.String values)
Creates a double array, parsing the given input string as a space-delimited list of values. |
|
| Method Summary | |
|---|---|
void |
add(int what)
Appends a single int to the end of this array. |
void |
append(int... stuff)
Appends the given doubles 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 int[] array
| Constructor Detail |
|---|
public DynamicIntArray()
public DynamicIntArray(int size)
public DynamicIntArray(int[] array)
array - array to use as backing array.
public DynamicIntArray(int first,
int... rest)
first - first valuerest - other valuespublic DynamicIntArray(java.lang.String values)
| Method Detail |
|---|
public void add(int what)
public void append(int... 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 | ||||||||