Class RolapResult.CellInfo

  • Enclosing class:
    RolapResult

    static class RolapResult.CellInfo
    extends java.lang.Object
    A CellInfo contains all of the information that a Cell requires. It is placed in the cellInfos map during evaluation and serves as a constructor parameter for RolapCell.

    During the evaluation stage they are mutable but after evaluation has finished they are not changed.

    • Constructor Summary

      Constructors 
      Constructor Description
      CellInfo​(long key)
      Creates a CellInfo representing the position of a cell.
      CellInfo​(long key, java.lang.Object value, java.lang.String formatString, RolapResult.ValueFormatter valueFormatter)
      Creates a CellInfo with position, value, format string and formatter of a cell.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      (package private) java.lang.String getFormatValue()
      Returns the formatted value of the Cell
      int hashCode()  
      • Methods inherited from class java.lang.Object

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

      • value

        java.lang.Object value
      • formatString

        java.lang.String formatString
      • key

        long key
    • Constructor Detail

      • CellInfo

        CellInfo​(long key)
        Creates a CellInfo representing the position of a cell.
        Parameters:
        key - Ordinal representing the position of a cell
      • CellInfo

        CellInfo​(long key,
                 java.lang.Object value,
                 java.lang.String formatString,
                 RolapResult.ValueFormatter valueFormatter)
        Creates a CellInfo with position, value, format string and formatter of a cell.
        Parameters:
        key - Ordinal representing the position of a cell
        value - Value of cell, or null if not yet known
        formatString - Format string of cell, or null
        valueFormatter - Formatter for cell, or null
    • Method Detail

      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • getFormatValue

        java.lang.String getFormatValue()
        Returns the formatted value of the Cell
        Returns:
        formatted value of the Cell