public interface IDisplayable
Modifier and Type | Field and Description |
---|---|
static String |
AUTO
Identifier for formatters suitable when many items are typically shown, such as tables,
overviews, etc.
|
static String |
EXACT
Identifier for formatters which shows the value with maximum known precision, but still only
as one value.
|
static String |
VERBOSE
Identifier for formatters suitable for tool tips.
|
Modifier and Type | Method and Description |
---|---|
String |
displayUsing(String formatHint)
Format this object for display purposes, preferably using the formatter hinted by
formatHint . |
static final String AUTO
IDisplayable
implementations.static final 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 String VERBOSE
EXACT
, the value may additionally be displayed in different units.String displayUsing(String formatHint)
formatHint
. If no such formatter is defined for this type, the default formatter will
be used.formatHint
- the format hintCopyright © 2020. All rights reserved.