Public Member Functions | |
PreparedString (String p) | |
PreparedString (String p, char placeholder) | |
String | toString (String[] pieces) |
Override String | toString () |
Package Attributes | |
String[] | pattern |
Invocation of the toString(String[]) method will resolve the placeholders to the elements of the string array.
If the string array contains too few elements, placeholders characters will be left in the output string. If the string array contains too many elements, the superfluous elements will not be inserted in the output string.
Note: Relationship between alma.acs.commandcenter.util.PreparedString and alma.acs.commandcenter.util.VariableString:
alma.acs.commandcenter.util.PreparedString uses positional parameters to replace placeholders with the elements of a string array. alma.acs.commandcenter.util.VariableString uses named parameters to replace placeholders with real values from a map.
|
Constructs an instance with the given source string and "?" as the placeholder character for later insertions.
|
|
Constructs an instance with the given source string and the given placeholder character.
|
|
|
|
Returns a version of the original source string where the placeholders have been replaced with the given string elements. |
|
|