public class DefaultNumericFormatter extends Object
BigDecimal.toString()
Constructor and Description |
---|
DefaultNumericFormatter()
Creates a new formatter.
|
DefaultNumericFormatter(String nullIndicator)
Creates a new formatter.
|
Modifier and Type | Method and Description |
---|---|
String |
format()
Formats the current value of the source as a text value.
|
void |
setSource(ScalarValued source)
Sets the container holding values to be formatted.
|
public DefaultNumericFormatter()
public DefaultNumericFormatter(String nullIndicator)
nullIndicator
- the text value to use for null valuespublic final void setSource(ScalarValued source)
TokenFormatter
setSource
in interface TokenFormatter
source
- the value container to formatpublic final String format()
TokenFormatter
format
in interface TokenFormatter
Copyright © 2020 Actian Corporation. All rights reserved.