Class PositionalParameterStringFormatter


  • public final class PositionalParameterStringFormatter
    extends Object
    Allows slf4j style formatting of parameters into a string.
    • 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 format
        parameters - list of parameters that will be substituted
        Returns:
        formatted string