public class ToStringRenderer extends AbstractRenderer<Object>
Object.toString()
of the object.Constructor and Description |
---|
ToStringRenderer(String textForNull)
Constructs a
ToStringRenderer that uses custom textForNull for null
objects. |
Modifier and Type | Method and Description |
---|---|
static ToStringRenderer |
instance()
Returns a
ToStringRenderer that uses empty string for null objects. |
String |
render(Object object)
Renders
object as plain text. |
render
public ToStringRenderer(String textForNull)
ToStringRenderer
that uses custom textForNull
for null
objects.public static ToStringRenderer instance()
ToStringRenderer
that uses empty string for null
objects.Copyright © 2018. All rights reserved.