static class Format.AlternateFormat extends Format.BasicFormat
Format.BasicFormat
which
allows a different format to be used for different kinds of values. If
there are 4 formats, purposes are as follows: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.
Modifier and Type | Field and Description |
---|---|
(package private) Format.BasicFormat[] |
formats |
(package private) Format.JavaFormat |
javaFormat |
code
Constructor and Description |
---|
Format.AlternateFormat(Format.BasicFormat[] formats,
Format.FormatLocale locale) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
format(Calendar calendar,
StringBuilder buf) |
(package private) void |
format(double n,
StringBuilder buf) |
(package private) void |
format(long n,
StringBuilder buf) |
(package private) void |
format(String s,
StringBuilder buf) |
(package private) void |
formatNull(StringBuilder buf) |
format, getFormatType, isApplicableTo, isApplicableTo
final Format.BasicFormat[] formats
final Format.JavaFormat javaFormat
Format.AlternateFormat(Format.BasicFormat[] formats, Format.FormatLocale locale)
void formatNull(StringBuilder buf)
formatNull
in class Format.BasicFormat
void format(double n, StringBuilder buf)
format
in class Format.BasicFormat
void format(long n, StringBuilder buf)
format
in class Format.BasicFormat
void format(String s, StringBuilder buf)
format
in class Format.BasicFormat
void format(Calendar calendar, StringBuilder buf)
format
in class Format.BasicFormat