|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
static interface RolapResult.ValueFormatter
Formatter to convert values into formatted strings.
Every Cell has a value, a format string (or CellFormatter) and a formatted value string. There are a wide range of possible values (pick a Double, any Double - its a value). Because there are lots of possible values, there are also lots of possible formatted value strings. On the other hand, there are only a very small number of format strings and CellFormatter's. These formatters are to be cached in a synchronized HashMaps in order to limit how many copies need to be kept around.
There are two implementations of the ValueFormatter interface:
RolapResult.CellFormatterValueFormatter, which formats using a
user-registered CellFormatter; and
RolapResult.FormatValueFormatter, which takes the Locale object.
| Field Summary | |
|---|---|
static RolapResult.ValueFormatter |
EMPTY
Formatter that always returns the empty string. |
| Method Summary | |
|---|---|
String |
format(Object value,
String formatString)
Formats a value according to a format string. |
| Field Detail |
|---|
static final RolapResult.ValueFormatter EMPTY
| Method Detail |
|---|
String format(Object value,
String formatString)
value - ValueformatString - Format string
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||