| org.gjt.sp.util.StringList
StringList | public class StringList extends ArrayList (Code) | | A List with some perl-like convenience functions (split/join primarily),
and easy conversion to/from arrays.
since: jEdit 4.3pre7 |
StringList | public StringList()(Code) | | |
join | public static String join(Collection c, String delim)(Code) | | The reverse of split - given a collection, takes each element
and places it in a string, joined by a delimiter.
|
join | public static String join(Object[] arr, String delim)(Code) | | Parameters: arr - array of objects Parameters: delim - delimiter to separate strings a single string with each element in arr converted to a string and concatenated,separated by delim. |
join | public String join(String delim)(Code) | | Non-static version, that joins "this" StringList.
Parameters: delim - the delimiter a joined string with delim inbetween each element |
split | public static StringList split(String orig, Object delim)(Code) | | Parameters: orig - the original string Parameters: delim - a delimiter to use for splitting a new StringList containing the split strings. |
toString | public String toString()(Code) | | Joins each string in the list with a newline.
a joined string representation of this, with the newline (\n) as delimiter. |
|
|