public final class StringTemplateUtil
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
applyTemplate(java.lang.String template,
java.lang.String... arguments)
Builds a string to create valid S expressions.
|
public static final java.lang.String applyTemplate(java.lang.String template, java.lang.String... arguments)
template
- A template String
in the form of "eabc{i}def{j}ghi"e
.arguments
- A list of arguments to replace the argument variables matching
the indexes to the values inside curly braces in template.java.lang.IndexOutOfBoundsException
- if the indexes inside the curly braces in
template
out of bounds of the
arguments
list.java.lang.NullPointerException
- if template
is null or empty.