public class KeyValueParser extends Object
Constructor and Description |
---|
KeyValueParser() |
Modifier and Type | Method and Description |
---|---|
static KeyValuePair<String,String> |
parse(String text)
Parses the input text into a key and value using '=' as a separator.
|
public static KeyValuePair<String,String> parse(String text)
eg "colour=red" will parse into "colour", "red"
If more than one equals sign is discovered, then the first is interpreted as the separator and subsequent ones are interpreted as part of the "value".
text
- The text to parse.Copyright © 2002-2022 Atlassian. All Rights Reserved.