Class Overview
Utility methods for macro parameters
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
|
Public Constructors
public
MacroParamUtils
()
Public Methods
public
static
List<String>
parseCommaSeparatedStrings
(String str)
Efficiently parses comma separated lists and trims the whitespace for each element. Ignores blank elements.
The string " foo,,, bar , baz" returns a list [foo, bar, baz]
Does a single pass on the string with 2 pointers to keep track of the start and end of the current word.
Parameters
str
| The comma separated input string |
Returns
- A list of elements from the string