Package com.ibm.icu.number
Class CompactNotation.CompactHandler
- java.lang.Object
-
- com.ibm.icu.number.CompactNotation.CompactHandler
-
- All Implemented Interfaces:
MicroPropsGenerator
- Enclosing class:
- CompactNotation
private static class CompactNotation.CompactHandler extends java.lang.Object implements MicroPropsGenerator
-
-
Field Summary
Fields Modifier and Type Field Description (package private) CompactData
data
(package private) MicroPropsGenerator
parent
(package private) java.util.Map<java.lang.String,MutablePatternModifier.ImmutablePatternModifier>
precomputedMods
(package private) PluralRules
rules
(package private) MutablePatternModifier
unsafePatternModifier
-
Constructor Summary
Constructors Modifier Constructor Description private
CompactHandler(CompactNotation notation, ULocale locale, java.lang.String nsName, CompactData.CompactType compactType, PluralRules rules, MutablePatternModifier buildReference, boolean safe, MicroPropsGenerator parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
precomputeAllModifiers(MutablePatternModifier buildReference)
Used by the safe code pathMicroProps
processQuantity(DecimalQuantity quantity)
Considers the givenDecimalQuantity
, optionally mutates it, and returns aMicroProps
.
-
-
-
Field Detail
-
rules
final PluralRules rules
-
parent
final MicroPropsGenerator parent
-
precomputedMods
final java.util.Map<java.lang.String,MutablePatternModifier.ImmutablePatternModifier> precomputedMods
-
unsafePatternModifier
final MutablePatternModifier unsafePatternModifier
-
data
final CompactData data
-
-
Constructor Detail
-
CompactHandler
private CompactHandler(CompactNotation notation, ULocale locale, java.lang.String nsName, CompactData.CompactType compactType, PluralRules rules, MutablePatternModifier buildReference, boolean safe, MicroPropsGenerator parent)
-
-
Method Detail
-
precomputeAllModifiers
private void precomputeAllModifiers(MutablePatternModifier buildReference)
Used by the safe code path
-
processQuantity
public MicroProps processQuantity(DecimalQuantity quantity)
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.
-
-