Package com.google.mu.util
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 withfragments
of sizeN + 1
andplaceholders
of sizeN
.
-
Method Details
-
interpolate
Interpolates withfragments
of sizeN + 1
andplaceholders
of sizeN
. Theplaceholders
BiStream includes pairs of placeholder names in the form of "{foo}" and their corresponding values passed through the varargs parameter ofStringFormat.To.with(java.lang.Object...)
.
-