public class DoubleFormatter extends Object
Constructor and Description |
---|
DoubleFormatter(NumberFormat format)
Creates a formatter using the specified format.
|
DoubleFormatter(NumberFormat format,
String nullIndicator)
Creates a formatter using the specified format.
|
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 DoubleFormatter(NumberFormat format)
format
- the output format to usepublic DoubleFormatter(NumberFormat format, String nullIndicator)
format
- the output format to usenullIndicator
- 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 © 2024 Actian Corporation. All rights reserved.