Package dev.aurelium.slate.function
Interface TemplateReplacer<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
-
Method Summary
Modifier and TypeMethodDescription@Nullable Stringreplace(TemplatePlaceholderInfo<T> info) Replaces a placeholder in a template.
-
Method Details
-
replace
Replaces a placeholder in a template.- Parameters:
info- theTemplatePlaceholderInfocontext object- Returns:
- the replaced string, or null if the placeholder should not be replaced
-