Package mondrian.util
Class Format.LiteralFormat
- java.lang.Object
-
- mondrian.util.Format.BasicFormat
-
- mondrian.util.Format.LiteralFormat
-
- Enclosing class:
- Format
static class Format.LiteralFormat extends Format.BasicFormat
LiteralFormat is an implementation ofFormat.BasicFormat
which prints a constant value, regardless of the value to be formatted.- See Also:
Format.CompoundFormat
-
-
Field Summary
Fields Modifier and Type Field Description (package private) String
s
-
Fields inherited from class mondrian.util.Format.BasicFormat
code
-
-
Constructor Summary
Constructors Constructor Description LiteralFormat(int code, String s)
LiteralFormat(String s)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
format(double d, StringBuilder buf)
(package private) void
format(long n, StringBuilder buf)
(package private) void
format(String str, StringBuilder buf)
(package private) void
format(Calendar calendar, StringBuilder buf)
(package private) void
format(Date date, StringBuilder buf)
-
Methods inherited from class mondrian.util.Format.BasicFormat
formatNull, getFormatType, isApplicableTo, isApplicableTo
-
-
-
-
Field Detail
-
s
String s
-
-
Method Detail
-
format
void format(double d, StringBuilder buf)
- Overrides:
format
in classFormat.BasicFormat
-
format
void format(long n, StringBuilder buf)
- Overrides:
format
in classFormat.BasicFormat
-
format
void format(String str, StringBuilder buf)
- Overrides:
format
in classFormat.BasicFormat
-
format
void format(Date date, StringBuilder buf)
- Overrides:
format
in classFormat.BasicFormat
-
format
void format(Calendar calendar, StringBuilder buf)
- Overrides:
format
in classFormat.BasicFormat
-
-