com.partnersoft.v3x.data
Class StringTable
java.lang.Object
com.partnersoft.v3x.data.GrowableArray
com.partnersoft.v3x.data.StringTable
public class StringTable
- extends GrowableArray
A reasonably compact representation of a bunch of homogenous records with
string fields.
|
Constructor Summary |
StringTable(int indexColumn,
java.lang.String[] columnNames,
int growIncrement)
|
StringTable(java.lang.String indexColumnName,
java.util.ArrayList columnNames,
int growIncrement)
|
|
Method Summary |
boolean |
addRecordToMap(java.lang.String id,
java.util.Map victim)
|
void |
append(java.util.ArrayList record)
|
void |
append(java.util.Map record)
|
void |
append(java.lang.String[] record)
|
java.lang.String[] |
find(java.lang.String id)
|
void |
newArray(int size)
Allocates a new, empty array of the given size and assign it to the
arrayObject property. |
void |
sort()
|
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
columns
public java.lang.String[] columns
indexColumn
public int indexColumn
array
public java.lang.String[][] array
varmint
public com.partnersoft.v3x.data.StringTable.Varmint varmint
growIncrement
public int growIncrement
StringTable
public StringTable(java.lang.String indexColumnName,
java.util.ArrayList columnNames,
int growIncrement)
StringTable
public StringTable(int indexColumn,
java.lang.String[] columnNames,
int growIncrement)
newArray
public void newArray(int size)
- Description copied from class:
GrowableArray
- Allocates a new, empty array of the given size and assign it to the
arrayObject property. It is assumed that subclasses will also set it to a
variable of the correct class (e.g. char[]) for ease of access as well.
Copying of existing contents is managed by this superclass.
- Specified by:
newArray in class GrowableArray
sort
public void sort()
find
public java.lang.String[] find(java.lang.String id)
addRecordToMap
public boolean addRecordToMap(java.lang.String id,
java.util.Map victim)
append
public void append(java.util.ArrayList record)
append
public void append(java.util.Map record)
append
public void append(java.lang.String[] record)