public class InstrumentationArgumentParser extends Object
Parses a list of key/value pairs separated by a space in to a map.
Example input:
list[0] = "firstKey firstValue" list[1] = "secondKey 'second value with space and single quote escape'
Example output:
map["firstKey"] = "firstValue" map["secondKey"] = "'second value with space and single quote escape'"
Constructor and Description |
---|
InstrumentationArgumentParser() |
Modifier and Type | Method and Description |
---|---|
static Map<String,String> |
parse(List<String> flatArgs)
Parses the given
flatArgs into a map of key/value pairs. |
public static Map<String,String> parse(List<String> flatArgs)
flatArgs
into a map of key/value pairs.flatArgs
- the flat representation of arguments, might be nullIllegalArgumentException
- when the given list contains unparseable entriesCopyright © 2008–2019 simpligility technologies inc.. All rights reserved.