|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--org.cli4j.util.StringUtils
A collection of useful string utility functions.
| Constructor Summary | |
StringUtils()
|
|
| Method Summary | |
static java.lang.String |
join(java.lang.String[] strings,
java.lang.String joinStr)
Constructs a single string by concatenating the args array element with the joinStr between each element. |
static java.util.Map |
parseCmdArgs(java.lang.String[] args)
Scan an array of stirngs, where argument names start with a dash ("-") and values are the next element in the array if it does not start with an dash. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public StringUtils()
| Method Detail |
public static java.util.Map parseCmdArgs(java.lang.String[] args)
null.args - The argument array, typcially what gets passed into a main
method.
public static java.lang.String join(java.lang.String[] strings,
java.lang.String joinStr)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||