public class StringParameterBuilder
extends java.lang.Object
Constructor and Description |
---|
StringParameterBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
addParameter(java.lang.String key,
java.lang.String value)
Adds a parameter key/value pair.
|
java.lang.String |
replace(java.lang.CharSequence spec)
Replaces all parameters in a string.
|
public void addParameter(@NotNull java.lang.String key, @NotNull java.lang.String value)
key
- the parameter's keyvalue
- the parameter's value@NotNull public java.lang.String replace(@NotNull java.lang.CharSequence spec) throws SyntaxErrorException
spec
- the input stringSyntaxErrorException
- if a parameter is invalid