Class DefaultCellFormatter

  • All Implemented Interfaces:
    CellFormatter

    public final class DefaultCellFormatter
    extends AbstractCellFormatter
    A default cell formatter. Uses the object's toString() method.
    • Field Detail

      • INSTANCE

        public static final CellFormatter INSTANCE
        An instance of this class.
    • Method Detail

      • nonNullFormat

        public String nonNullFormat​(Object value)
        Description copied from class: AbstractCellFormatter
        Formats the specified value into a string appropriate for displaying in a table cell. Note that value is guaranteed to be non-null.
        Specified by:
        nonNullFormat in class AbstractCellFormatter
        Parameters:
        value - the value
        Returns:
        the formatted string