• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* GENERATED SOURCE. DO NOT MODIFY. */
2 // © 2017 and later: Unicode, Inc. and others.
3 // License & terms of use: http://www.unicode.org/copyright.html#License
4 package ohos.global.icu.impl.number;
5 
6 import ohos.global.icu.number.Scale;
7 
8 /**
9  * Wraps a {@link Scale} for use in the number formatting pipeline.
10  * @hide exposed on OHOS
11  */
12 public class MultiplierFormatHandler implements MicroPropsGenerator {
13     final Scale multiplier;
14     final MicroPropsGenerator parent;
15 
MultiplierFormatHandler(Scale multiplier, MicroPropsGenerator parent)16     public MultiplierFormatHandler(Scale multiplier, MicroPropsGenerator parent) {
17         this.multiplier = multiplier;
18         this.parent = parent;
19     }
20 
21     @Override
processQuantity(DecimalQuantity quantity)22     public MicroProps processQuantity(DecimalQuantity quantity) {
23         MicroProps micros = parent.processQuantity(quantity);
24         multiplier.applyTo(quantity);
25         return micros;
26     }
27 }
28