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
ConstructorsModifierConstructorDescriptionprivate
CompactHandler
(CompactNotation notation, ULocale locale, String nsName, CompactData.CompactType compactType, PluralRules rules, MutablePatternModifier buildReference, boolean safe, MicroPropsGenerator parent) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
precomputeAllModifiers
(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: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.
-