Interface StringReplacer


public interface StringReplacer
A simple interface for String replacement
  • Field Details

    • DUMMY

      static final StringReplacer DUMMY
      The dummy replacer that does nothing
  • Method Details

    • replace

      static String replace(String original, UUID uuid, Collection<? extends StringReplacer> stringReplacers)
      Replace a string based on the unique id
      Parameters:
      original - the original string
      uuid - the unique id
      stringReplacers - the list of string replacer
      Returns:
      the replaced string
    • replace

      static String replace(String original, UUID uuid, StringReplacer... stringReplacers)
      Replace a string based on the unique id
      Parameters:
      original - the original string
      uuid - the unique id
      stringReplacers - the list of string replacer
      Returns:
      the replaced string
    • replace

      String replace(String original, UUID uuid)
      Replace a string based on the unique id
      Parameters:
      original - the original string
      uuid - the unique id
      Returns:
      the replaced string
    • replace

      default String replace(String original)
      Replace a string
      Parameters:
      original - the original string
      Returns:
      the replaced string