Class RolapResult.FormatValueFormatter

  • All Implemented Interfaces:
    RolapResult.ValueFormatter
    Enclosing class:
    RolapResult

    static class RolapResult.FormatValueFormatter
    extends java.lang.Object
    implements RolapResult.ValueFormatter
    A FormatValueFormatter takes a Locale as a parameter and uses it to get the Format to be used in formatting an Object value with a given format string.
    • Constructor Summary

      Constructors 
      Constructor Description
      FormatValueFormatter​(java.util.Locale locale)
      Creates a FormatValueFormatter.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String format​(java.lang.Object value, java.lang.String formatString)
      Formats a value according to a format string.
      • Methods inherited from class java.lang.Object

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

      • locale

        final java.util.Locale locale
    • Constructor Detail

      • FormatValueFormatter

        FormatValueFormatter​(java.util.Locale locale)
        Creates a FormatValueFormatter.
        Parameters:
        locale - Locale
    • Method Detail

      • format

        public java.lang.String format​(java.lang.Object value,
                                       java.lang.String formatString)
        Description copied from interface: RolapResult.ValueFormatter
        Formats a value according to a format string.
        Specified by:
        format in interface RolapResult.ValueFormatter
        Parameters:
        value - Value
        formatString - Format string
        Returns:
        Formatted value