LEFT | RIGHT |
1 // © 2017 and later: Unicode, Inc. and others. | 1 // © 2017 and later: Unicode, Inc. and others. |
2 // License & terms of use: http://www.unicode.org/copyright.html#License | 2 // License & terms of use: http://www.unicode.org/copyright.html#License |
3 package com.ibm.icu.impl.number.rounders; | 3 package com.ibm.icu.impl.number.rounders; |
4 | 4 |
5 import com.ibm.icu.impl.number.FormatQuantity; | 5 import com.ibm.icu.impl.number.FormatQuantity; |
6 import com.ibm.icu.impl.number.Rounder; | 6 import com.ibm.icu.impl.number.Rounder; |
7 | 7 |
8 public class MagnitudeRounder extends Rounder { | 8 public class MagnitudeRounder extends Rounder { |
9 | 9 |
10 public static interface IProperties extends IBasicRoundingProperties {} | 10 public static interface IProperties extends IBasicRoundingProperties {} |
(...skipping 10 matching lines...) Expand all Loading... |
21 private MagnitudeRounder(IBasicRoundingProperties properties) { | 21 private MagnitudeRounder(IBasicRoundingProperties properties) { |
22 super(properties); | 22 super(properties); |
23 } | 23 } |
24 | 24 |
25 @Override | 25 @Override |
26 public void apply(FormatQuantity input) { | 26 public void apply(FormatQuantity input) { |
27 input.roundToMagnitude(-maxFrac, mathContext); | 27 input.roundToMagnitude(-maxFrac, mathContext); |
28 applyDefaults(input); | 28 applyDefaults(input); |
29 } | 29 } |
30 } | 30 } |
LEFT | RIGHT |