public interface IDisplayable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
AUTO
Identifier for formatters suitable when many items are typically shown, such as tables,
overviews, etc.
|
static java.lang.String |
EXACT
Identifier for formatters which shows the value with maximum known precision, but still only
as one value.
|
static java.lang.String |
VERBOSE
Identifier for formatters suitable for tool tips.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
displayUsing(java.lang.String formatHint)
Format this object for display purposes, preferably using the formatter hinted by
formatHint. |
static final java.lang.String AUTO
IDisplayable
implementations.static final java.lang.String EXACT
IQuantity.interactiveFormat(), but tweaked for display, such as using non-breaking
space between number and unit, and in applicable locales, between number groups. Also, not
always parsable constructs like custom units may be used.static final java.lang.String VERBOSE
EXACT, the value may additionally be displayed in different units.java.lang.String displayUsing(java.lang.String formatHint)
formatHint. If no such formatter is defined for this type, the default formatter will
be used.formatHint - the format hint