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 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 |
Modifier and Type | Method and Description |
---|---|
IFormatter<T> |
ContentType.getDefaultFormatter() |
IFormatter<T> |
ContentType.getFormatter(String formatterIdentifier) |
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<IQuantity> |
LinearKindOfQuantity.getFormatterResolving(IRange<IQuantity> range) |
IFormatter<IRange<IQuantity>> |
KindOfQuantity.getRangeFormatter(String formatHint)
Temporary helper to format quantity ranges.
|
Copyright © 2020. All rights reserved.