Package org.onlab.util
Class PositionalParameterStringFormatter
- java.lang.Object
-
- org.onlab.util.PositionalParameterStringFormatter
-
public final class PositionalParameterStringFormatter extends Object
Allows slf4j style formatting of parameters into a string.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
format(String source, Object... parameters)
Formats a string using slf4j style positional parameter replacement.
-
-
-
Method Detail
-
format
public static String format(String source, Object... parameters)
Formats a string using slf4j style positional parameter replacement. Instances of "{}" in the source string are replaced in order by the specified parameter values as strings.- Parameters:
source
- original string to formatparameters
- list of parameters that will be substituted- Returns:
- formatted string
-
-