Package | Description |
---|---|
org.openjdk.jmc.common.unit |
This package contains the data model for quantities and units.
|
Modifier and Type | Interface and Description |
---|---|
interface |
IIncrementalFormatter
Quantity formatter extension to reduce redundant information when presenting multiple adjacent,
and growing, quantities for human consumption.
|
Modifier and Type | Class and Description |
---|---|
class |
ComparableConstraint<T extends java.lang.Comparable<T>>
A
constraint that wraps a persister for Comparable
values, and constrains the allowed values with minimum and maximum values. |
class |
DisplayFormatter<T>
A display formatter is basically an identifier that tells a user interface widget how the unit
should be formatted, e.g.
|
static class |
KindOfQuantity.ExactFormatter<U extends TypedUnit<U>> |
static class |
KindOfQuantity.VerboseFormatter<U extends TypedUnit<U>> |
static class |
LinearKindOfQuantity.AutoFormatter |
static class |
LinearKindOfQuantity.DualUnitFormatter |
private static class |
TimestampKind.FractionFormatter |
private static class |
TimestampKind.LegacyAndFractionFormatter |
private static class |
TimestampKind.LegacyFormatter |
Modifier and Type | Field and Description |
---|---|
private static IFormatter<IQuantity> |
TimestampKind.HOUR_TO_MICROS_FORMATTER |
private static IFormatter<IQuantity> |
TimestampKind.HOUR_TO_MILLIS_FORMATTER |
private static IFormatter<IQuantity> |
TimestampKind.HOUR_TO_NANOS_FORMATTER |
private static IFormatter<IQuantity> |
TimestampKind.HOUR_TO_SECONDS_FORMATTER |
private static IFormatter<IQuantity> |
TimestampKind.MICROS_FORMATTER |
private static IFormatter<IQuantity> |
TimestampKind.MILLIS_FORMATTER |
private static IFormatter<IQuantity> |
TimestampKind.NANOS_FORMATTER |
private static IFormatter<IQuantity> |
TimestampKind.YEAR_TO_DAY_FORMATTER |
private static IFormatter<IQuantity> |
TimestampKind.YEAR_TO_MICROS_FORMATTER |
private static IFormatter<IQuantity> |
TimestampKind.YEAR_TO_MILLIS_FORMATTER |
private static IFormatter<IQuantity> |
TimestampKind.YEAR_TO_NANOS_FORMATTER |
private static IFormatter<IQuantity> |
TimestampKind.YEAR_TO_SECONDS_FORMATTER |
Modifier and Type | Method and Description |
---|---|
IFormatter<T> |
ContentType.getDefaultFormatter() |
IFormatter<T> |
ContentType.getFormatter(java.lang.String formatterIdentifier) |
IFormatter<IQuantity> |
TimestampKind.getFormatterResolving(IRange<IQuantity> range) |
IFormatter<IQuantity> |
LinearKindOfQuantity.getFormatterResolving(IRange<IQuantity> range) |
abstract IFormatter<IQuantity> |
KindOfQuantity.getFormatterResolving(IRange<IQuantity> range)
Get a formatter with sufficient resolution to produce unique strings for both ends of
range , and consecutive equally spaced quantities. |
IFormatter<IRange<IQuantity>> |
KindOfQuantity.getRangeFormatter(java.lang.String formatHint)
Temporary helper to format quantity ranges.
|