|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.libs.StringList
Fast, simple hash table for storing unique strings.
Constructor Summary | |
---|---|
StringList()
Constructor for StringList: initialize empty table |
Method Summary | |
---|---|
boolean |
ContainsString(java.lang.String str)
Test if string is present |
void |
EmptyList()
Empty the list |
java.util.Enumeration |
GetStrings()
Enumerate all strings in table. |
void |
InsertString(java.lang.String str)
Insert new String into the hash table |
java.lang.String |
RemoveString(java.lang.String str)
Remove string from table (if present) |
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()
Method Detail |
public void EmptyList()
public void InsertString(java.lang.String str)
str
- - string to be addedpublic java.lang.String RemoveString(java.lang.String str)
str
- - string to be removed
public boolean ContainsString(java.lang.String str)
str
- - string to be checked
public java.util.Enumeration GetStrings()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |