Package com.ibm.icu.impl.number
Class MutablePatternModifier.ImmutablePatternModifier
- java.lang.Object
-
- com.ibm.icu.impl.number.MutablePatternModifier.ImmutablePatternModifier
-
- All Implemented Interfaces:
MicroPropsGenerator
- Enclosing class:
- MutablePatternModifier
public static class MutablePatternModifier.ImmutablePatternModifier extends java.lang.Object implements MicroPropsGenerator
-
-
Field Summary
Fields Modifier and Type Field Description (package private) MicroPropsGenerator
parent
(package private) AdoptingModifierStore
pm
(package private) PluralRules
rules
-
Constructor Summary
Constructors Constructor Description ImmutablePatternModifier(AdoptingModifierStore pm, PluralRules rules)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MutablePatternModifier.ImmutablePatternModifier
addToChain(MicroPropsGenerator parent)
void
applyToMicros(MicroProps micros, DecimalQuantity quantity)
MicroProps
processQuantity(DecimalQuantity quantity)
Considers the givenDecimalQuantity
, optionally mutates it, and returns aMicroProps
.
-
-
-
Field Detail
-
pm
final AdoptingModifierStore pm
-
rules
final PluralRules rules
-
parent
MicroPropsGenerator parent
-
-
Constructor Detail
-
ImmutablePatternModifier
ImmutablePatternModifier(AdoptingModifierStore pm, PluralRules rules)
-
-
Method Detail
-
addToChain
public MutablePatternModifier.ImmutablePatternModifier addToChain(MicroPropsGenerator parent)
-
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.
-
applyToMicros
public void applyToMicros(MicroProps micros, DecimalQuantity quantity)
-
-