public class StringList extends Object
Constructor and Description |
---|
StringList()
Default constructor
|
StringList(Vector list)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addString(String str)
Add a string to the list
|
boolean |
containsString(String str)
Check if the list contains the specified string
|
int |
findString(String str)
Return the index of the specified string, or -1 if not in the list
|
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(String str)
Remove the specified string from the list
|
String |
removeStringAt(int idx)
Remove the string at the specified index within the list
|
String |
toString()
Return the string list as a string
|
public StringList()
public StringList(Vector list)
list
- Vectorpublic final int numberOfStrings()
public final void addString(String str)
str
- Stringpublic final String getStringAt(int idx)
idx
- intpublic final boolean containsString(String str)
str
- Stringpublic final int findString(String str)
str
- Stringpublic final boolean removeString(String str)
str
- Stringpublic final String removeStringAt(int idx)
idx
- intpublic final void remoteAllStrings()
Copyright © 2005–2017 Alfresco Software. All rights reserved.