Interface StringInterpolator


interface StringInterpolator
Author:
Karl Heinz Marbaise
  • Field Details

    • PLACEHOLDER_PATTERN

      static final Pattern PLACEHOLDER_PATTERN
      This pattern ${..} with the given group (.*?) is defined to extract the ${key} as key.
  • Method Details

    • interpolate

      static Function<String,String> interpolate(Map<String,String> mapping)
      Parameters:
      mapping - The map which contains the mapping between key and value. null is not allowed
      Returns:
      The interpolated string.