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.modifiers; | 3 package com.ibm.icu.impl.number.modifiers; |
4 | 4 |
5 import com.ibm.icu.impl.number.Format; | 5 import com.ibm.icu.impl.number.Format; |
6 import com.ibm.icu.impl.number.FormatQuantity; | 6 import com.ibm.icu.impl.number.FormatQuantity; |
7 import com.ibm.icu.impl.number.Modifier; | 7 import com.ibm.icu.impl.number.Modifier; |
8 import com.ibm.icu.impl.number.Modifier.AffixModifier; | 8 import com.ibm.icu.impl.number.Modifier.AffixModifier; |
9 import com.ibm.icu.impl.number.ModifierHolder; | 9 import com.ibm.icu.impl.number.ModifierHolder; |
10 import com.ibm.icu.impl.number.Properties; | 10 import com.ibm.icu.impl.number.Properties; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 } | 44 } |
45 | 45 |
46 /** Internal method used to export a positive and negative modifier to a prope
rty bag. */ | 46 /** Internal method used to export a positive and negative modifier to a prope
rty bag. */ |
47 static void exportPositiveNegative(Properties properties, Modifier positive, M
odifier negative) { | 47 static void exportPositiveNegative(Properties properties, Modifier positive, M
odifier negative) { |
48 properties.setPositivePrefix(positive.getPrefix().isEmpty() ? null : positiv
e.getPrefix()); | 48 properties.setPositivePrefix(positive.getPrefix().isEmpty() ? null : positiv
e.getPrefix()); |
49 properties.setPositiveSuffix(positive.getSuffix().isEmpty() ? null : positiv
e.getSuffix()); | 49 properties.setPositiveSuffix(positive.getSuffix().isEmpty() ? null : positiv
e.getSuffix()); |
50 properties.setNegativePrefix(negative.getPrefix().isEmpty() ? null : negativ
e.getPrefix()); | 50 properties.setNegativePrefix(negative.getPrefix().isEmpty() ? null : negativ
e.getPrefix()); |
51 properties.setNegativeSuffix(negative.getSuffix().isEmpty() ? null : negativ
e.getSuffix()); | 51 properties.setNegativeSuffix(negative.getSuffix().isEmpty() ? null : negativ
e.getSuffix()); |
52 } | 52 } |
53 } | 53 } |
LEFT | RIGHT |