public abstract class AbstractCellFormatter extends java.lang.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 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 |
Constructor and Description |
---|
AbstractCellFormatter() |
Modifier and Type | Method and 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.
|
protected static final java.lang.String EMPTY
protected static final java.lang.String SLASH
protected static final java.lang.String QUERY
protected static final java.lang.String UNDERSCORE
protected static final java.lang.String SPACE
protected static final java.lang.String OX
public java.lang.String format(java.lang.Object value)
CellFormatter
format
in interface CellFormatter
value
- the valueprotected abstract java.lang.String nonNullFormat(java.lang.Object value)
value
- the value