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 SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static Stringformat(String source, Object... parameters)Formats a string using slf4j style positional parameter replacement.
 
- 
- 
- 
Method Detail- 
formatpublic 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 format
- parameters- list of parameters that will be substituted
- Returns:
- formatted string
 
 
- 
 
-