public class StringList
extends java.lang.Object
Constructor and Description |
---|
StringList()
Default constructor
|
StringList(java.util.Vector list)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addString(java.lang.String str)
Add a string to the list
|
boolean |
containsString(java.lang.String str)
Check if the list contains the specified string
|
int |
findString(java.lang.String str)
Return the index of the specified string, or -1 if not in the list
|
java.lang.String |
getStringAt(int idx)
Return the string at the specified index
|
int |
numberOfStrings()
Return the number of strings in the list
|
void |
remoteAllStrings()
Clear the strings from the list
|
boolean |
removeString(java.lang.String str)
Remove the specified string from the list
|
java.lang.String |
removeStringAt(int idx)
Remove the string at the specified index within the list
|
java.lang.String |
toString()
Return the string list as a string
|
public StringList()
public StringList(java.util.Vector list)
list
- Vectorpublic final int numberOfStrings()
public final void addString(java.lang.String str)
str
- Stringpublic final java.lang.String getStringAt(int idx)
idx
- intpublic final boolean containsString(java.lang.String str)
str
- Stringpublic final int findString(java.lang.String str)
str
- Stringpublic final boolean removeString(java.lang.String str)
str
- Stringpublic final java.lang.String removeStringAt(int idx)
idx
- intpublic final void remoteAllStrings()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.