public class NumberFormatRenderer extends AbstractRenderer<java.lang.Number>
Number
objects with a NumberFormat
.Constructor and Description |
---|
NumberFormatRenderer()
Create an instance using
NumberFormat.getDecimalFormat() . |
NumberFormatRenderer(NumberFormat format)
Create an instance with the given format.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
render(java.lang.Number object)
Renders
object as plain text. |
render
public NumberFormatRenderer()
NumberFormat.getDecimalFormat()
.public NumberFormatRenderer(NumberFormat format)
public java.lang.String render(java.lang.Number object)
Renderer
object
as plain text. Should never throw any exceptions!