Package dev.aurelium.slate.function
Interface ComponentReplacer<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(ComponentPlaceholderInfo<T> info) Replaces a placeholder in a component.
-
Method Details
-
replace
Replaces a placeholder in a component.- Parameters:
info- theComponentPlaceholderInfocontext object- Returns:
- the replacement text, or null if no replacement should be made
-