Package com.google.gerrit.common.data
Class ParameterizedString
java.lang.Object
com.google.gerrit.common.data.ParameterizedString
Performs replacements on strings such as
Hello ${user}
.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ParameterizedString
Obtain a string which has no parameters and always produces the value.String[]
Convert a map of parameters into a value array for binding.Get the list of parameter names, ordered by appearance in the pattern.Get the original pattern given to the constructor.Get the pattern with variables replaced with {0}, {1}, ...Format this string by performing the variable replacements.toString()
-
Constructor Details
-
ParameterizedString
protected ParameterizedString() -
ParameterizedString
-
-
Method Details
-
asis
Obtain a string which has no parameters and always produces the value. -
getPattern
Get the original pattern given to the constructor. -
getRawPattern
Get the pattern with variables replaced with {0}, {1}, ... -
getParameterNames
Get the list of parameter names, ordered by appearance in the pattern. -
bind
Convert a map of parameters into a value array for binding. -
replace
Format this string by performing the variable replacements. -
replace
-
toString
-