public class DynamicShortArray extends DynamicArray
Copyright 2001-2006 Partner Software, Inc.
| Modifier and Type | Field and Description |
|---|---|
short[] |
array |
arrayObject, capacity, end, fastGrowthFactor, fastGrowthLimit, slowGrowthAmount, start| Constructor and Description |
|---|
DynamicShortArray()
Creates an empty short array.
|
DynamicShortArray(int size)
Creates a short array of the given size.
|
DynamicShortArray(short... stuff)
Creates a short array with the given initial contents.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(short what)
Appends a single double to the end of this array.
|
void |
append(short... 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.
|
append, clear, copy, copy, copyExactly, copyFrom, copyTo, insert, isEmpty, makeRoomFor, makeRoomFor, pack, remove, size, subsection, tidy, toStringpublic DynamicShortArray()
public DynamicShortArray(int size)
public DynamicShortArray(short... stuff)
public void add(short what)
public void append(short... stuff)
public java.lang.String contentsToString()
public void newArray(int size)
DynamicArray
public abstract void newArray(int size) {
arrayObject = array = new Foo[size];
}
newArray in class DynamicArray