public class FormattedString
extends java.lang.Object
String.format(String, Object...)
in a toString, i.e. using %s syntax,
useful for places where we want deferred evaluation
(e.g. as message to Preconditions
to skip concatenation when not needed)Constructor and Description |
---|
FormattedString(java.lang.String pattern,
java.lang.Object[] args) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object[] |
getArgs() |
java.lang.String |
getPattern() |
com.google.common.base.Supplier<java.lang.String> |
supplier() |
java.lang.String |
toString() |