public class LazilyFormattedString
extends java.lang.Object
Formatter string and a set of values. When
toString() is called the format string is filled in with the given values. This allows for lazy evaluation
of the value objects formatting function which may be expensive.| Modifier and Type | Field and Description |
|---|---|
private java.lang.Object[] |
arguments
The values that are filled in to the template string.
|
private java.lang.String |
template
The template that is filled in with the values.
|
| Constructor and Description |
|---|
LazilyFormattedString(java.lang.String stringTemplate,
java.lang.Object... templateArguments)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
toString() |
private final java.lang.String template
private final java.lang.Object[] arguments