public class RegularGroupFormatter extends NumericGroupFormatter
| Constructor and Description |
|---|
RegularGroupFormatter(int grpSize,
String grpSep)
Create a RegularGroupFormatter
|
| Modifier and Type | Method and Description |
|---|---|
String |
format(FastStringBuffer value)
Reformat a number to add grouping separators
|
String |
getSeparator()
Get the grouping separator to be used.
|
public RegularGroupFormatter(int grpSize,
String grpSep)
grpSize - the grouping size. If zero, no grouping separators are insertedgrpSep - the grouping separator (normally a single character, but may be a surrogate pair)public String format(FastStringBuffer value)
NumericGroupFormatterformat in class NumericGroupFormattervalue - a buffer holding the number to be reformattedpublic String getSeparator()
getSeparator in class NumericGroupFormatter