| Modifier and Type | Field and Description |
|---|---|
| private LocalizedNumberFormatter | fIntegerFormatter
A localized NumberFormatter used to format the integer-valued bigger units of Mixed Unit measurements. |
| private ListFormatter | fListFormatter
A localised list formatter for joining mixed units together. |
| private List | fMixedUnitData
Stores unit data for each of the individual units. |
| private final MicroPropsGenerator | |
| private final PluralRules |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static MixedUnitLongNameHandler | forMeasureUnit(ULocale
The desired locale. locale, MeasureUnit The mixed measure unit to construct a
MixedUnitLongNameHandler for. mixedUnit, NumberFormatter.Specifies the desired unit rendering. width,Specifies the desired grammatical case. If the
specified case is not found, we fall back to nominative or no-case. unitDisplayCase, PluralRules PluralRules instance. rules, MicroPropsGenerator MicroPropsGenerator instance. parent)Construct a localized MixedUnitLongNameHandler for the specified MeasureUnit. |
| private Modifier | getMixedUnitModifier(DecimalQuantity quantity, MicroProps micros)
Deprecated
as a consequence of
For a mixed unit, returns a Modifier that takes only one parameter: the
smallest and final unit of the set.
DecimalQuantity being deprecated.
|
| public Modifier | getModifier(Modifier.
Implements com. |
| public MicroProps | processQuantity(DecimalQuantity
The quantity for consideration and optional mutation. quantity)Implements com.
Deprecated
as a consequence of
Produces a plural-appropriate Modifier for a mixed unit: DecimalQuantity being deprecated.
quantity is
taken as the final smallest unit, while the larger unit values must be
provided by micros.mixedMeasures, micros being the MicroProps instance
returned by the parent.
|
| public MicroProps | processQuantityWithMicros(DecimalQuantity quantity, MicroProps micros)
Implements com.
Deprecated
as a consequence of
Produces a plural-appropriate Modifier for a mixed unit: DecimalQuantity being deprecated.
quantity is
taken as the final smallest unit, while the larger unit values must be
provided via micros.mixedMeasures.
|
| fIntegerFormatter | back to summary |
|---|---|
| private LocalizedNumberFormatter fIntegerFormatter A localized NumberFormatter used to format the integer-valued bigger units of Mixed Unit measurements. | |
| fListFormatter | back to summary |
|---|---|
| private ListFormatter fListFormatter A localised list formatter for joining mixed units together. | |
| fMixedUnitData | back to summary |
|---|---|
| private List<String[]> fMixedUnitData Stores unit data for each of the individual units. For each unit, it stores ARRAY_LENGTH strings, as returned by getMeasureData. | |
| parent | back to summary |
|---|---|
| private final MicroPropsGenerator parent | |
| rules | back to summary |
|---|---|
| private final PluralRules rules | |
| MixedUnitLongNameHandler | back to summary |
|---|---|
| private MixedUnitLongNameHandler(PluralRules rules, MicroPropsGenerator parent) | |
| forMeasureUnit | back to summary |
|---|---|
| public static MixedUnitLongNameHandler forMeasureUnit(ULocale locale, MeasureUnit mixedUnit, NumberFormatter. Construct a localized MixedUnitLongNameHandler for the specified MeasureUnit. It must be a MIXED unit.
| |
| getMixedUnitModifier | back to summary |
|---|---|
| private Modifier getMixedUnitModifier(DecimalQuantity quantity, MicroProps micros)
Deprecated as a consequence of For a mixed unit, returns a Modifier that takes only one parameter: the smallest and final unit of the set. The bigger units' values and labels get baked into this Modifier, together with the unit label of the final unit. | |
| getModifier | back to summary |
|---|---|
| public Modifier getModifier(Modifier. Implements com. Required for ModifierStore. And ModifierStore is required by SimpleModifier constructor's last parameter. We assert his will never get called though.
| |
| processQuantity | back to summary |
|---|---|
| public MicroProps processQuantity(DecimalQuantity quantity) Implements com. Deprecated as a consequence of Produces a plural-appropriate Modifier for a mixed unit:
| |
| processQuantityWithMicros | back to summary |
|---|---|
| public MicroProps processQuantityWithMicros(DecimalQuantity quantity, MicroProps micros) Implements com. Deprecated as a consequence of Produces a plural-appropriate Modifier for a mixed unit: | |