java.io.Serializable
public class StringVector
extends java.lang.Object
implements java.io.Serializable
Constructor | Description |
---|---|
StringVector() |
Default constructor.
|
StringVector(int blocksize) |
Construct a StringVector, using the given block size.
|
Modifier and Type | Method | Description |
---|---|---|
void |
addElement(java.lang.String value) |
Append a string onto the vector.
|
boolean |
contains(java.lang.String s) |
Tell if the table contains the given string.
|
boolean |
containsIgnoreCase(java.lang.String s) |
Tell if the table contains the given string.
|
java.lang.String |
elementAt(int i) |
Get the nth element.
|
int |
getLength() |
Get the length of the list.
|
java.lang.String |
peek() |
Get the string at the tail of this vector without popping.
|
java.lang.String |
pop() |
Pop the tail of this vector.
|
void |
push(java.lang.String s) |
Tell if the table contains the given string.
|
int |
size() |
Get the length of the list.
|
public StringVector()
public StringVector(int blocksize)
blocksize
- Size of the blocks to allocatepublic int getLength()
public final int size()
public final void addElement(java.lang.String value)
value
- Sting to add to the vectorpublic final java.lang.String elementAt(int i)
i
- Index of string to findpublic final boolean contains(java.lang.String s)
s
- String to look forpublic final boolean containsIgnoreCase(java.lang.String s)
s
- String to findpublic final void push(java.lang.String s)
s
- String to push into the vectorpublic final java.lang.String pop()
public final java.lang.String peek()
Copyright ? 2014 Apache XML Project. All Rights Reserved.