|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.tomgibara.pronto.util.Strings
public final class Strings
A collection of static utility methods for processing strings.
| Method Summary | |
|---|---|
static java.lang.String |
join(java.lang.Object[] array,
java.lang.String delimiter)
Joins the string representations of an array of objects into a single string, separating them with the supplied delimiter. |
static java.util.Map<java.lang.String,java.lang.String> |
parseProperties(java.lang.String propsStr)
Constructs a map of strings from a single string as follows: 1) The string is split at each semicolon. |
static java.util.List<java.lang.String> |
splitCommas(java.lang.String str)
Splits a single string into a list of strings as follows: 1) The string is split at each comma. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.util.List<java.lang.String> splitCommas(java.lang.String str)
str - the string to be parsed
public static java.util.Map<java.lang.String,java.lang.String> parseProperties(java.lang.String propsStr)
propsStr - the string to be parsed
public static java.lang.String join(java.lang.Object[] array,
java.lang.String delimiter)
array - the array of objects to be joineddelimiter - string to be inserted between array element
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||