Interface StringFormat.Interpolator<T>
- Enclosing class:
StringFormat
public static interface StringFormat.Interpolator<T>
A functional SPI interface for custom interpolation.
- Since:
- 7.0
-
Method Summary
Modifier and TypeMethodDescriptioninterpolate(List<String> fragments, BiStream<Substring.Match, Object> placeholders) Interpolates withfragmentsof sizeN + 1andplaceholdersof sizeN.
-
Method Details
-
interpolate
Interpolates withfragmentsof sizeN + 1andplaceholdersof sizeN. TheplaceholdersBiStream includes pairs of placeholder names in the form of "{foo}" and their corresponding values passed through the varargs parameter ofStringFormat.Template.with(java.lang.Object...).
-