public abstract class AbstractCellFormatter extends Object implements CellFormatter
CellFormatter
. This class takes care of
dealing with null inputs; subclasses should implement their format method
knowing that the input is guaranteed to be non-null.Modifier and Type | Field and Description |
---|---|
protected static String |
EMPTY |
protected static String |
OX |
protected static String |
QUERY |
protected static String |
SLASH |
protected static String |
SPACE |
protected static String |
UNDERSCORE |
Constructor and Description |
---|
AbstractCellFormatter() |
Modifier and Type | Method and Description |
---|---|
String |
format(Object value)
Formats the specified value into a string appropriate for displaying
in a table cell.
|
protected abstract String |
nonNullFormat(Object value)
Formats the specified value into a string appropriate for displaying
in a table cell.
|
protected static final String EMPTY
protected static final String SLASH
protected static final String QUERY
protected static final String UNDERSCORE
protected static final String SPACE
protected static final String OX
public String format(Object value)
CellFormatter
format
in interface CellFormatter
value
- the value