Package com.google.gerrit.common.data
Class ParameterizedString
- java.lang.Object
- 
- com.google.gerrit.common.data.ParameterizedString
 
- 
 public class ParameterizedString extends Object Performs replacements on strings such asHello ${user}.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description classParameterizedString.Builder
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedParameterizedString()ParameterizedString(String pattern)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ParameterizedStringasis(String constant)Obtain a string which has no parameters and always produces the value.String[]bind(Map<String,String> params)Convert a map of parameters into a value array for binding.List<String>getParameterNames()Get the list of parameter names, ordered by appearance in the pattern.StringgetPattern()Get the original pattern given to the constructor.StringgetRawPattern()Get the pattern with variables replaced with {0}, {1}, ...ParameterizedString.Builderreplace(String name, String value)Stringreplace(Map<String,String> params)Format this string by performing the variable replacements.StringtoString()
 
- 
- 
- 
Constructor Detail- 
ParameterizedStringprotected ParameterizedString() 
 - 
ParameterizedStringpublic ParameterizedString(String pattern) 
 
- 
 - 
Method Detail- 
asispublic static ParameterizedString asis(String constant) Obtain a string which has no parameters and always produces the value.
 - 
getPatternpublic String getPattern() Get the original pattern given to the constructor.
 - 
getRawPatternpublic String getRawPattern() Get the pattern with variables replaced with {0}, {1}, ...
 - 
getParameterNamespublic List<String> getParameterNames() Get the list of parameter names, ordered by appearance in the pattern.
 - 
bindpublic String[] bind(Map<String,String> params) Convert a map of parameters into a value array for binding.
 - 
replacepublic String replace(Map<String,String> params) Format this string by performing the variable replacements.
 - 
replacepublic ParameterizedString.Builder replace(String name, String value) 
 
- 
 
-