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.formatters; | 3 package com.ibm.icu.impl.number.formatters; |
4 | 4 |
5 import java.util.Deque; | 5 import java.util.Deque; |
6 | 6 |
7 import com.ibm.icu.impl.number.NumberStringBuilder; | |
8 import com.ibm.icu.impl.number.Format; | 7 import com.ibm.icu.impl.number.Format; |
9 import com.ibm.icu.impl.number.FormatQuantity; | 8 import com.ibm.icu.impl.number.FormatQuantity; |
10 import com.ibm.icu.impl.number.ModifierHolder; | 9 import com.ibm.icu.impl.number.ModifierHolder; |
| 10 import com.ibm.icu.impl.number.NumberStringBuilder; |
11 import com.ibm.icu.impl.number.Properties; | 11 import com.ibm.icu.impl.number.Properties; |
| 12 |
| 13 // TODO: This class isn't currently being used anywhere. Consider removing it. |
12 | 14 |
13 /** Attaches all prefixes and suffixes at this point in the render tree without
bubbling up. */ | 15 /** Attaches all prefixes and suffixes at this point in the render tree without
bubbling up. */ |
14 public class StrongAffixFormat extends Format implements Format.AfterFormat { | 16 public class StrongAffixFormat extends Format implements Format.AfterFormat { |
15 private final Format child; | 17 private final Format child; |
16 | 18 |
17 public StrongAffixFormat(Format child) { | 19 public StrongAffixFormat(Format child) { |
18 this.child = child; | 20 this.child = child; |
19 | 21 |
20 if (child == null) { | 22 if (child == null) { |
21 throw new IllegalArgumentException("A child formatter is required for Stro
ngAffixFormat"); | 23 throw new IllegalArgumentException("A child formatter is required for Stro
ngAffixFormat"); |
(...skipping 15 matching lines...) Expand all Loading... |
37 public int after( | 39 public int after( |
38 ModifierHolder mods, NumberStringBuilder string, int leftIndex, int rightI
ndex) { | 40 ModifierHolder mods, NumberStringBuilder string, int leftIndex, int rightI
ndex) { |
39 return mods.applyAll(string, leftIndex, rightIndex); | 41 return mods.applyAll(string, leftIndex, rightIndex); |
40 } | 42 } |
41 | 43 |
42 @Override | 44 @Override |
43 public void export(Properties properties) { | 45 public void export(Properties properties) { |
44 // Nothing to do. | 46 // Nothing to do. |
45 } | 47 } |
46 } | 48 } |
LEFT | RIGHT |