Class LongNameMultiplexer
java.lang.Object
org.graalvm.shadowed.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 interfaceLongNameMultiplexer calls the parent MicroPropsGenerator itself, receiving the MicroProps instance in use for this formatting pipeline. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LongNameMultiplexerforMeasureUnits(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.
-
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:MicroPropsGeneratorConsiders the givenDecimalQuantity, optionally mutates it, and returns aMicroProps.- Specified by:
processQuantityin interfaceMicroPropsGenerator- Parameters:
quantity- The quantity for consideration and optional mutation.- Returns:
- A MicroProps instance resolved for the quantity.
-