Method Summary |
|
public void | add(String string) Adds a string to the back of this list. |
public void | add(int pos, String string) Adds the string to the stringlist at position pos. |
public void | add(StringValue value) Adds a string value to this list as a string. |
public boolean | contains(String string) |
public String | get(int index) Gets the string at the given index. |
public List | getList() |
public IStringIterator | iterator() Returns a typesafe iterator over this collection of strings. |
public void | prepend(String string) Adds the given string to the front of the list. |
public void | remove(int index) Removes the string at the given index. |
public void | removeLast() Removes the last string in this list. |
public static StringList | repeat(int count, String string) Returns a list of a string repeated a given number of times. |
public int | size() |
public void | sort() Sorts this string list alphabetically. |
public String[] | toArray() Converts this string list to a string array. |
public static StringList | tokenize(String string) Extracts tokens from a comma and space delimited string. |
public static StringList | tokenize(String string, String delimiters) Extracts tokens from a delimited string. |
public int | totalLength() |
public static StringList | valueOf(Collection collection) Converts a collection of objects into a list of string values by using
the conversion methods of the StringValue class. |
public static StringList | valueOf(Object[] objects) Converts an array of objects into a list of strings by using the object
to string conversion method of the StringValue class. |
public static StringList | valueOf(String string) Returns a string list with just one string in it. |
public static StringList | valueOf(String[] array) Converts a string array to a string list. |