public class DynamicFloatArray extends DynamicArray
Copyright 2001-2007 Partner Software, Inc.
| Modifier and Type | Field and Description |
|---|---|
float[] |
array |
arrayObject, capacity, end, fastGrowthFactor, fastGrowthLimit, slowGrowthAmount, start| Constructor and Description |
|---|
DynamicFloatArray()
Creates an empty float array.
|
DynamicFloatArray(DynamicDoubleArray doubles)
Creates a copy of the given DynamicDoubleArray, of course losing
precision in the process.
|
DynamicFloatArray(float... stuff)
Creates a float array with the given initial contents.
|
DynamicFloatArray(int size)
Creates a float array of the given size.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(float what)
Appends a single double to the end of this array.
|
void |
append(float... 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 DynamicFloatArray()
public DynamicFloatArray(int size)
public DynamicFloatArray(float... stuff)
public DynamicFloatArray(DynamicDoubleArray doubles)
doubles - array of doubles to copypublic void add(float what)
public void append(float... 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