- All Implemented Interfaces:
- com.google.common.base.Function<java.lang.Object,java.lang.String>
- Enclosing class:
- ValueRenderers
public static class ValueRenderers.FormatString
extends java.lang.Object
implements com.google.common.base.Function<java.lang.Object,java.lang.String>
Converts a value to a String by passing it into String.format()
using the supplied format string. Similar to SafeToString, a nullString
value can be provided that will be used for null values. If nullString
is not specified then the value is passed to String.format() as is.