Package com.ibm.icu.impl.number
Class LongNameMultiplexer
java.lang.Object
com.ibm.icu.impl.number.LongNameMultiplexer
- All Implemented Interfaces:
MicroPropsGenerator
A MicroPropsGenerator that multiplexes between different LongNameHandlers,
depending on the outputUnit.
See processQuantity() for the input requirements.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
LongNameMultiplexer calls the parent MicroPropsGenerator itself, receiving the MicroProps instance in use for this formatting pipeline. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LongNameMultiplexer
forMeasureUnits
(ULocale locale, List<MeasureUnit> units, NumberFormatter.UnitWidth width, String unitDisplayCase, PluralRules rules, MicroPropsGenerator parent) processQuantity
(DecimalQuantity quantity) Considers the givenDecimalQuantity
, optionally mutates it, and returns aMicroProps
.
-
Field Details
-
fParent
-
fHandlers
-
fMeasureUnits
-
-
Constructor Details
-
LongNameMultiplexer
-
-
Method Details
-
forMeasureUnits
public static LongNameMultiplexer forMeasureUnits(ULocale locale, List<MeasureUnit> units, NumberFormatter.UnitWidth width, String unitDisplayCase, PluralRules rules, MicroPropsGenerator parent) -
processQuantity
Description copied from interface:MicroPropsGenerator
Considers the givenDecimalQuantity
, optionally mutates it, and returns aMicroProps
.- Specified by:
processQuantity
in interfaceMicroPropsGenerator
- Parameters:
quantity
- The quantity for consideration and optional mutation.- Returns:
- A MicroProps instance resolved for the quantity.
-