Package com.ibm.icu.impl.number
Class MultiplierFormatHandler
- java.lang.Object
-
- com.ibm.icu.impl.number.MultiplierFormatHandler
-
- All Implemented Interfaces:
MicroPropsGenerator
public class MultiplierFormatHandler extends java.lang.Object implements MicroPropsGenerator
Wraps aScale
for use in the number formatting pipeline.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Scale
multiplier
(package private) MicroPropsGenerator
parent
-
Constructor Summary
Constructors Constructor Description MultiplierFormatHandler(Scale multiplier, MicroPropsGenerator parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MicroProps
processQuantity(DecimalQuantity quantity)
Considers the givenDecimalQuantity
, optionally mutates it, and returns aMicroProps
.
-
-
-
Field Detail
-
multiplier
final Scale multiplier
-
parent
final MicroPropsGenerator parent
-
-
Constructor Detail
-
MultiplierFormatHandler
public MultiplierFormatHandler(Scale multiplier, MicroPropsGenerator parent)
-
-
Method Detail
-
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.
-
-