Package mondrian.util

Class Format.CompoundFormat

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) void format​(double v, java.lang.StringBuilder buf)  
      (package private) void format​(long v, java.lang.StringBuilder buf)  
      (package private) void format​(java.lang.String v, java.lang.StringBuilder buf)  
      (package private) void format​(java.util.Calendar v, java.lang.StringBuilder buf)  
      (package private) void format​(java.util.Date v, java.lang.StringBuilder buf)  
      (package private) boolean isApplicableTo​(double n)
      Returns whether this format can handle a given value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • format

        void format​(java.lang.String v,
                    java.lang.StringBuilder buf)
        Overrides:
        format in class Format.BasicFormat
      • format

        void format​(java.util.Date v,
                    java.lang.StringBuilder buf)
        Overrides:
        format in class Format.BasicFormat
      • format

        void format​(java.util.Calendar v,
                    java.lang.StringBuilder buf)
        Overrides:
        format in class Format.BasicFormat
      • isApplicableTo

        boolean isApplicableTo​(double n)
        Description copied from class: Format.BasicFormat
        Returns whether this format can handle a given value.

        Usually returns true; one notable exception is a format for negative numbers which causes the number to be underflow to zero and therefore be ineligible for the negative format.

        Overrides:
        isApplicableTo in class Format.BasicFormat
        Parameters:
        n - value
        Returns:
        Whether this format is applicable for a given value