|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbyucc.jhdl.Fsm.StringList
A class to model a list of strings.
Constructor Summary | |
StringList()
Construct an empty string list. |
|
StringList(int siz)
Construct a string list containing "siz" null entries |
Method Summary | |
void |
addElement(java.lang.String s)
Add a new string to the end of the list, making the list grow by one in size. |
java.lang.String |
elementAt(int i)
Get a string from a StringList |
int |
findString(java.lang.String s)
|
java.lang.String |
firstElement()
Return the first element of the list |
java.lang.String |
lastElement()
Return the last element of the list |
void |
setElement(int i,
java.lang.String s)
Set the element at location i with string s. |
int |
size()
Tell how many strings are in stringlist |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public StringList()
public StringList(int siz)
siz
- the size of the string listMethod Detail |
public void addElement(java.lang.String s)
s
- the string to be added to the listpublic void setElement(int i, java.lang.String s)
i
- the index of the string to set in the StringLists
- the string to set it topublic java.lang.String elementAt(int i)
i
- the index of the string to get
public int size()
public java.lang.String lastElement()
public java.lang.String firstElement()
public int findString(java.lang.String s)
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |