mondrian.util
Class Format.AlternateFormat
java.lang.Object
mondrian.util.Format.BasicFormat
mondrian.util.Format.AlternateFormat
- Enclosing class:
- Format
static class Format.AlternateFormat
- extends Format.BasicFormat
AlternateFormat is an implementation of Format.BasicFormat
which
allows a different format to be used for different kinds of values. If
there are 4 formats, purposes are as follows:
- positive numbers
- negative numbers
- zero
- null values
If there are fewer than 4 formats, the first is used as a fall-back.
See the the
visual basic format specification for more details.
-
-
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
formats
final Format.BasicFormat[] formats
Format.AlternateFormat
Format.AlternateFormat(Format.BasicFormat[] formats)
formatNull
void formatNull(StringBuilder buf)
- Overrides:
formatNull
in class Format.BasicFormat
format
void format(double n,
StringBuilder buf)
- Overrides:
format
in class Format.BasicFormat
format
void format(long n,
StringBuilder buf)
- Overrides:
format
in class Format.BasicFormat
format
void format(String s,
StringBuilder buf)
- Overrides:
format
in class Format.BasicFormat
format
void format(Date date,
StringBuilder buf)
- Overrides:
format
in class Format.BasicFormat
format
void format(Calendar calendar,
StringBuilder buf)
- Overrides:
format
in class Format.BasicFormat