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