Package com.ibm.icu.number
Class CompactNotation.CompactHandler
java.lang.Object
com.ibm.icu.number.CompactNotation.CompactHandler
- All Implemented Interfaces:
MicroPropsGenerator
- Enclosing class:
CompactNotation
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final CompactData(package private) final MicroPropsGenerator(package private) final Map<String, MutablePatternModifier.ImmutablePatternModifier> (package private) final PluralRules(package private) final MutablePatternModifier -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCompactHandler(CompactNotation notation, ULocale locale, String nsName, CompactData.CompactType compactType, PluralRules rules, MutablePatternModifier buildReference, boolean safe, MicroPropsGenerator parent) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprecomputeAllModifiers(MutablePatternModifier buildReference) Used by the safe code pathprocessQuantity(DecimalQuantity quantity) Considers the givenDecimalQuantity, optionally mutates it, and returns aMicroProps.
-
Field Details
-
rules
-
parent
-
precomputedMods
-
unsafePatternModifier
-
data
-
-
Constructor Details
-
CompactHandler
private CompactHandler(CompactNotation notation, ULocale locale, String nsName, CompactData.CompactType compactType, PluralRules rules, MutablePatternModifier buildReference, boolean safe, MicroPropsGenerator parent)
-
-
Method Details
-
precomputeAllModifiers
Used by the safe code path -
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.
-