Package mondrian.spi

Interface CellFormatter

  • All Known Subinterfaces:
    CellFormatter

    public interface CellFormatter
    An SPI to format the cell values.

    The user registers the CellFormatter's full class name as an attribute of a Measure in the schema file. A single instance of the CellFormatter is created for the Measure.

    Since CellFormatters will be used to format different Measures in different ways, you must implement the equals and hashCode methods so that the different CellFormatters are not treated as being the same in a Collection.

    • Method Detail

      • formatCell

        String formatCell​(Object value)
        Formats a cell value.
        Parameters:
        value - Cell value
        Returns:
        the formatted value