Interface StringReplacer
public interface StringReplacer
A simple interface for String replacement
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringReplacerThe dummy replacer that does nothing -
Method Summary
Modifier and TypeMethodDescriptiondefault StringReplace a stringReplace a string based on the unique idstatic Stringreplace(String original, UUID uuid, Collection<? extends StringReplacer> stringReplacers) Replace a string based on the unique idstatic Stringreplace(String original, UUID uuid, StringReplacer... stringReplacers) Replace a string based on the unique id
-
Field Details
-
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 stringuuid- the unique idstringReplacers- the list of string replacer- Returns:
- the replaced string
-
replace
Replace a string based on the unique id- Parameters:
original- the original stringuuid- the unique idstringReplacers- the list of string replacer- Returns:
- the replaced string
-
replace
Replace a string based on the unique id- Parameters:
original- the original stringuuid- the unique id- Returns:
- the replaced string
-
replace
Replace a string- Parameters:
original- the original string- Returns:
- the replaced string
-