| Modifier and Type | Field and Description |
|---|---|
| protected int | |
| protected int | |
| protected String[] | |
| protected int | |
| pack-priv static final long |
| Access | Constructor and Description |
|---|---|
| public | |
| public | StringVector(int
Size of the blocks to allocate blocksize)Construct a StringVector, using the given block size. |
| Modifier and Type | Method and Description |
|---|---|
| public final void | |
| public final boolean | |
| public final boolean | Returns: True if the String is in this vectorString to find s)Tell if the table contains the given string. |
| public final String | |
| public int | |
| public final String | Returns: The string at the tail of this vector.Get the string at the tail of this vector without popping. |
| public final String | Returns: The String last added to this vector or null not found. The string is removed from the vector.Pop the tail of this vector. |
| public final void | |
| public final int |
| m_blocksize | back to summary |
|---|---|
| protected int m_blocksize | |
| m_firstFree | back to summary |
|---|---|
| protected int m_firstFree | |
| m_map | back to summary |
|---|---|
| protected String[] m_map | |
| m_mapSize | back to summary |
|---|---|
| protected int m_mapSize | |
| serialVersionUID | back to summary |
|---|---|
| pack-priv static final long serialVersionUID | |
| StringVector | back to summary |
|---|---|
| public StringVector() Default constructor. Note that the default block size is very small, for small lists. | |
| StringVector | back to summary |
|---|---|
| public StringVector(int blocksize) Construct a StringVector, using the given block size.
| |
| addElement | back to summary |
|---|---|
| public final void addElement(String value) Append a string onto the vector.
| |
| contains | back to summary |
|---|---|
| public final boolean contains(String s) Tell if the table contains the given string.
| |
| containsIgnoreCase | back to summary |
|---|---|
| public final boolean containsIgnoreCase(String s) Tell if the table contains the given string. Ignore case.
| |
| elementAt | back to summary |
|---|---|
| public final String elementAt(int i) Get the nth element.
| |
| getLength | back to summary |
|---|---|
| public int getLength() Get the length of the list.
| |
| peek | back to summary |
|---|---|
| public final String peek() Get the string at the tail of this vector without popping.
| |
| pop | back to summary |
|---|---|
| public final String pop() Pop the tail of this vector.
| |
| push | back to summary |
|---|---|
| public final void push(String s) Tell if the table contains the given string.
| |
| size | back to summary |
|---|---|
| public final int size() Get the length of the list.
| |