Class AbstractCellFormatter

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static java.lang.String EMPTY  
      protected static java.lang.String OX  
      protected static java.lang.String QUERY  
      protected static java.lang.String SLASH  
      protected static java.lang.String SPACE  
      protected static java.lang.String UNDERSCORE  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String format​(java.lang.Object value)
      Formats the specified value into a string appropriate for displaying in a table cell.
      protected abstract java.lang.String nonNullFormat​(java.lang.Object value)
      Formats the specified value into a string appropriate for displaying in a table cell.
      • Methods inherited from class java.lang.Object

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

      • AbstractCellFormatter

        public AbstractCellFormatter()
    • Method Detail

      • format

        public java.lang.String format​(java.lang.Object value)
        Description copied from interface: CellFormatter
        Formats the specified value into a string appropriate for displaying in a table cell. Note that null values are acceptable, and will result in the empty string.
        Specified by:
        format in interface CellFormatter
        Parameters:
        value - the value
        Returns:
        the formatted string
      • nonNullFormat

        protected abstract java.lang.String nonNullFormat​(java.lang.Object value)
        Formats the specified value into a string appropriate for displaying in a table cell. Note that value is guaranteed to be non-null.
        Parameters:
        value - the value
        Returns:
        the formatted string