| Modifier and Type | Field and Description |
|---|---|
| private int | m_blocksize
Size of blocks to allocate |
| private int | m_firstFree
Number of StringToStringTable objects in this array |
| private StringToStringTable[] | m_map
Array of StringToStringTable objects |
| private int | m_mapSize
Size of this array |
| Access | Constructor and Description |
|---|---|
| public | |
| public | StringToStringTableVector(int
Size of blocks to allocate blocksize)Construct a StringToStringTableVector, using the given block size. |
| Modifier and Type | Method and Description |
|---|---|
| public final void | addElement(StringToStringTable
StringToStringTable object to add value)Append a StringToStringTable object onto the vector. |
| public final boolean | Returns: True if the StringToStringTable is foundThe StringToStringTable to find s)Tell if the table contains the given StringToStringTable. |
| public final boolean | Returns: True if the string was found in table, null if notString to look for key)Given a string, find out if there is a value in this table that matches the key. |
| public final StringToStringTable | Returns: The StringToStringTable object at the given indexIndex of element to find i)Get the nth element. |
| public final String | |
| public final int | |
| public final void | |
| public final int |
| m_blocksize | back to summary |
|---|---|
| private int m_blocksize Size of blocks to allocate | |
| m_firstFree | back to summary |
|---|---|
| private int m_firstFree Number of StringToStringTable objects in this array | |
| m_map | back to summary |
|---|---|
| private StringToStringTable[] m_map Array of StringToStringTable objects | |
| m_mapSize | back to summary |
|---|---|
| private int m_mapSize Size of this array | |
| StringToStringTableVector | back to summary |
|---|---|
| public StringToStringTableVector() Default constructor. Note that the default block size is very small, for small lists. | |
| StringToStringTableVector | back to summary |
|---|---|
| public StringToStringTableVector(int blocksize) Construct a StringToStringTableVector, using the given block size.
| |
| addElement | back to summary |
|---|---|
| public final void addElement(StringToStringTable value) Append a StringToStringTable object onto the vector.
| |
| contains | back to summary |
|---|---|
| public final boolean contains(StringToStringTable s) Tell if the table contains the given StringToStringTable.
| |
| containsKey | back to summary |
|---|---|
| public final boolean containsKey(String key) Given a string, find out if there is a value in this table that matches the key.
| |
| elementAt | back to summary |
|---|---|
| public final StringToStringTable elementAt(int i) Get the nth element.
| |
| get | back to summary |
|---|---|
| public final String get(String key) Given a string, find the last added occurance value that matches the key. | |
| getLength | back to summary |
|---|---|
| public final int getLength() Get the length of the list.
| |
| removeLastElem | back to summary |
|---|---|
| public final void removeLastElem() Remove the last element. | |
| size | back to summary |
|---|---|
| public final int size() Get the length of the list.
| |