public class ValueRenderers
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ValueRenderers.FormatString
Converts a value to a String by passing it into String.format()
using the supplied format string.
|
static class |
ValueRenderers.SafeToString
Similar to Functions.toStringFunction() except this will use
a provided string in the case of a null value.
|
Constructor and Description |
---|
ValueRenderers() |
Modifier and Type | Method and Description |
---|---|
static com.google.common.base.Function<java.lang.Object,java.lang.String> |
formatString(java.lang.String format) |
static com.google.common.base.Function<java.lang.Object,java.lang.String> |
formatString(java.lang.String format,
java.lang.String nullValue) |
static <T> DefaultValueRenderer<T> |
formattedRenderer(java.lang.String format,
java.lang.String nullValue) |
static com.google.common.base.Function<java.lang.Object,java.lang.String> |
toString(java.lang.String nullValue) |
static <T> DefaultValueRenderer<T> |
toStringRenderer(java.lang.String nullValue) |
public static <T> DefaultValueRenderer<T> toStringRenderer(java.lang.String nullValue)
public static <T> DefaultValueRenderer<T> formattedRenderer(java.lang.String format, java.lang.String nullValue)
public static com.google.common.base.Function<java.lang.Object,java.lang.String> toString(java.lang.String nullValue)
public static com.google.common.base.Function<java.lang.Object,java.lang.String> formatString(java.lang.String format)
public static com.google.common.base.Function<java.lang.Object,java.lang.String> formatString(java.lang.String format, java.lang.String nullValue)